public static function create($parsed)
    {
        $result = new self();

        $result->_affinityGroups = [];
        $entries = Utilities::tryGetArray(
            Resources::XTAG_AFFINITY_GROUP,
            $parsed
        );

        foreach ($entries as $value) {
            $result->_affinityGroups[] = new AffinityGroup($value);
        }

        return $result;
    }