status.setStageStatusMessage(t.getMessage());
// Clean up domain.xml so that the system config is clean after the undeploy
try {
if (deployer != null) {
deployer.removePolicy();
}
DeploymentServiceUtils.removeFromConfig(req.getName(), req.getType());
} catch (Exception eee){}
}
}