if (parentDeployment.getComponents().size() > 1 || !parentDeployment.getChildren().isEmpty()) {
if (LOG.isDebugEnabled()) {
LOG.debug("Redeploying parent deployment '" + parentDeployment.getName()
+ "' in order to complete removal of component " + toString(managedComponent) + "...");
}
DeploymentProgress progress = deploymentManager.redeploy(parentDeployment.getName());
DeploymentStatus status = DeploymentUtils.run(progress);
if (status.isFailed()) {
LOG.error("Failed to redeploy parent deployment '" + parentDeployment.getName()
+ "during removal of component " + toString(managedComponent)
+ " - removal may not persist when the app server is restarted.", status.getFailure());