protected function xmlToProps($xml)
{
$data = new \stdClass();
$dom = new \DOMDocument('1.0', 'UTF-8');
$dom->loadXML($xml);
foreach ($dom->getElementsByTagNameNS('http://www.jcp.org/jcr/sv/1.0', 'property') as $propertyNode) {
$this->mapPropertyFromElement($propertyNode, $data);
}
return $data;
}