{
FileSystemManager fsManager = VFS.getManager();
String uri = resolveFileURI();
if (uri == null)
{
throw new ConfigurationRuntimeException("Unable to determine file to monitor");
}
return fsManager.resolveFile(uri);
}
catch (FileSystemException fse)
{
String msg = "Unable to monitor " + getFileHandler().getURL().toString();
log.error(msg);
throw new ConfigurationRuntimeException(msg, fse);
}
}