File path = new File(deployURL.getFile());
String archive = path.getName();
File deployFile = new File(uploadDir, archive);
VirtualFile root = VFS.getChild(deployFile.toURI());
Deployment deployment = mainDeployer.getDeployment(getDeploymentName(root));
/* TODO: that is a hack */
if (deployment == null)
{
deployment = deploymentFactory.createVFSDeployment(getDeploymentName(root), root);
mainDeployer.addDeployment(deployment);
mainDeployer.process();
moduleID.setRunning(true);
moduleID.clearChildModuleIDs();
// Repopulate the child modules
DeploymentContext context = mainDeployer.getDeploymentContext(deployment.getName());
fillChildrenTargetModuleID(moduleID, context);
}
// hack(moduleID, context, "start");
}