protected function getAbsoluteFilePath($basefile, $resource)
{
$basedir = dirname($basefile);
$file = realpath($basedir . DIRECTORY_SEPARATOR . $resource);
if (!is_string($file) || !is_file($file)) {
$file = realpath($resource);
}
if (is_string($file) && is_file($file)) {
return $file;
} else {
throw new TSqlMapConfigurationException('sqlmap_unable_to_find_resource', $resource);
}
}