protected function addResourceArray(array $resource): void
    {
        foreach ($resource as $locale => $value) {
            if ($locale === '@metadata') {
                $this->parseMetadata($value);
                continue;
            }
            $this->addSubresource($value, $locale);
        }
    }