VFSResource getResourceForPath(LaunchSession launchSession, HttpServletRequest request, HttpServletResponse response,
String path) throws Exception {
DAVTransaction transaction = new DAVTransaction(request, response);
VFSRepository repository = VFSRepository.getRepository(request.getSession());
VFSResource res = repository.getResource(launchSession, path, transaction.getCredentials());
if (res == null) {
throw new Exception("Could not find network place resource for path " + path + ".");
}
return res;