public function parse($rawFileName)
{
$fileName = realpath($rawFileName);
if (!is_file($fileName)) {
throw new FileNotFoundException($rawFileName);
}
$rootDir = dirname($fileName);
$ramlString = file_get_contents($fileName);
$ramlData = $this->parseRamlString($ramlString, $rootDir);
return $this->parseRamlData($ramlData, $rootDir);
}