ApplicationInfo appInfo = appRegistry.get(appName);
try {
ActionReport report = new HTMLActionReporter();
UndeployCommandParameters commandParams =
new UndeployCommandParameters();
commandParams.name = appName;
commandParams.target = server.getName();
commandParams.origin = UndeployCommandParameters.Origin.unload;
deployment.disable(commandParams, app, appInfo, report, logger);