getSynapseConfiguration().removeEndpoint(existingArtifactName);
if (!existingArtifactName.equals(ep.getName())) {
log.info("Endpoint named " + existingArtifactName + " has been Undeployed");
}
getSynapseConfiguration().addEndpoint(ep.getName(), ep);
existingEp.destroy();
if (log.isDebugEnabled()) {
log.debug("Endpoint " + (existingArtifactName.equals(ep.getName()) ?
"update" : "deployment") + " from file : " + fileName + " : Completed");
}
log.info("Endpoint named '" + ep.getName()