log.debug("ProxyService Undeployment of the proxy named : "
+ artifactName + " : Started");
}
try {
ProxyService proxy = getSynapseConfiguration().getProxyService(artifactName);
if (proxy != null) {
if (log.isDebugEnabled()) {
log.debug("Stopping the ProxyService named : " + artifactName);
}
proxy.stop(getSynapseConfiguration());
getSynapseConfiguration().removeProxyService(artifactName);
if (log.isDebugEnabled()) {
log.debug("ProxyService Undeployment of the proxy named : "
+ artifactName + " : Completed");
}
log.info("ProxyService named '" + proxy.getName() + "' has been undeployed");
} else if (log.isDebugEnabled()) {
log.debug("Proxy service " + artifactName + " has already been undeployed");
}
} catch (Exception e) {
handleSynapseArtifactDeploymentError(