URL deployedURL = (URL) server.invoke(deploymentService,
"getDeployedURL", new Object[] { module },
new String[] { "java.lang.String" });
// Undeploy the module (move to ./undeploy)
server.invoke(deploymentService, "undeployModuleAsynch",
new Object[] { module }, new String[] { "java.lang.String" });
// Ask the MainDeployer every 3 secs, 5 times (15secs max wait) if
// the module was undeployed
Boolean isDeployed = new Boolean(false);