IPath contentPath = new Path(path.startsWith("/") ? path : "/" + path); //$NON-NLS-1$ //$NON-NLS-2$
if (!AuthorizationService.checkRights(userId, contentPath.toString(), "GET")) //$NON-NLS-1$ //$NON-NLS-2$
return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_FORBIDDEN, "Forbidden access to application contents", null);
IFileStore contentLocation = NewFileServlet.getFileStore(null, contentPath.removeFirstSegments(1));
if (!contentLocation.fetchInfo().isDirectory())
contentLocation = contentLocation.getParent();
/* check if the application has a manifest */
ManifestParseTree manifest = null;
ParseManifestCommand parseManifestCommand = new ParseManifestCommand(null, userId, contentPath.toString()); /* TODO: set target */