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 */
parseManifestCommand.setApplicationAnalyzer(new ApplicationReconstructor());
IStatus status = parseManifestCommand.doIt();
if (status.isOK())
manifest = parseManifestCommand.getManifest();
IDeploymentService deploymentService = CFActivator.getDefault().getDeploymentService();
List<Plan> plans = deploymentService.getDeploymentPlans(contentLocation, manifest);
JSONArray children = new JSONArray();