private function loadProperty($templateKey, \DOMXPath $xpath, \DOMNode $node, &$tags)
{
$result = $this->loadValues($xpath, $node, ['name', 'type', 'minOccurs', 'maxOccurs', 'colspan', 'cssClass']);
if (in_array($result['name'], $this->reservedPropertyNames, false)) {
throw new ReservedPropertyNameException($templateKey, $result['name']);
}
$result['mandatory'] = $this->getValueFromXPath('@mandatory', $xpath, $node, false);
$result['multilingual'] = $this->getValueFromXPath('@multilingual', $xpath, $node, true);
$result['tags'] = $this->loadTags('x:tag', $tags, $xpath, $node);
$result['params'] = $this->loadParams('x:params/x:param', $xpath, $node);
$result['meta'] = $this->loadMeta('x:meta/x:*', $xpath, $node);
return $result;
}