public function getProperty($name, $asContainer = false) { $properties = $this->getProperties(); if ($this->hasProperty($name)) { if ($asContainer) { return $properties[$name]; } else { return $properties[$name]->getData(); } } return null; }