private function parseImport($basePath, $path, $profile)
{
if (!file_exists($path) && file_exists($basePath . DIRECTORY_SEPARATOR . $path)) {
$path = $basePath . DIRECTORY_SEPARATOR . $path;
}
if (!file_exists($path)) {
throw new ConfigurationLoadingException(sprintf('Can not import `%s` configuration file. File not found.', $path));
}
return $this->loadFileConfiguration($path, $profile);
}