}
}
private void removePolicy(DeploymentContext dc)
throws DeploymentException {
OpsParams params = dc.getCommandParameters(OpsParams.class);
if (params.origin != OpsParams.Origin.undeploy
&& params.origin != OpsParams.Origin.deploy) {
return;
}
String appName = params.name();
//Monitoring
//Remove policy files only if managers are not destroyed by cleanup
try {
String[] webcontexts = wsmf.getContextsForApp(appName, false);