public function __get($name)
{
$available = $this->getAvailableHandlers();
if (array_key_exists($name, $available)) {
if ($this->availableHandlers[$name] instanceof AbstractServiceHandler) {
return $this->availableHandlers[$name];
} else {
$class = __NAMESPACE__ . '\\' . self::getOriginalServiceName(get_class($this)) . '\\Handler\\' . ucfirst($name) . 'Handler';
$this->availableHandlers[$name] = new $class($this);
return $this->availableHandlers[$name];
}
}
}