URL location = FlexibleLocation.resolveLocation("component://" + componentName + "/.");
FileObject ofbizBase = getContext().resolveFile(location.toString(), properties);
return VFSUtil.toFileObject(ofbizBase.getFileSystem().getFileSystemManager(), ofbizBase.resolveFile(name.substring(restStart)).getURL().toString(), properties);
} catch (Exception e) {
FileSystemException fse = new FileSystemException(e.getMessage(), null, e);
fse.initCause(e);
throw fse;
}
}
}