public function __get($name)
{
$available = self::getAvailableServices();
if (isset($available[$name])) {
if (!isset($this->serviceInstances[$name])) {
$this->serviceInstances[$name] = new $available[$name]($this);
}
return $this->serviceInstances[$name];
}
throw new OpenStackException(sprintf('Invalid Service name "%s" for the OpenStack', $name));
}