private function loadFile($path, $className, array $options = array())
{
$json = $this->storage->read($path);
$jsonData = $this->decode($json, $path);
$options['path'] = $path;
try {
return $this->converterProvider->getJsonConverter($className)->fromJson($jsonData, $options);
} catch (ConversionFailedException $e) {
throw new InvalidConfigException(sprintf('The JSON in %s could not be converted: %s', $path, $e->getMessage()), 0, $e);
}
}