private function tryLoad($file)
    {
        try {
            return XmlUtils::loadFile($file, __DIR__ . static::SCHEME_PATH);
        } catch (\InvalidArgumentException $e) {
            throw new InvalidMediaFormatException(
                sprintf('Could not parse image formats XML file "%s"', $file),
                null,
                $e
            );
        }
    }