public static function create($parsed)
    {
        $result = new self();
        $hostedServices = Utilities::tryGetArray(
            Resources::XTAG_HOSTED_SERVICES,
            $parsed
        );
        $storageServices = Utilities::tryGetArray(
            Resources::XTAG_STORAGE_SERVICES,
            $parsed
        );

        $result->_affinityGroup = new AffinityGroup($parsed);

        foreach ($hostedServices as $value) {
            $service = new HostedService($value);
            $result->_hostedServices[] = $service;
        }

        foreach ($storageServices as $value) {
            $service = new StorageService($value);
            $result->_storageServices[] = $service;
        }

        return $result;
    }