if (tm != null) {
getSynapseConfiguration().removeSequenceTemplate(artifactName);
if (log.isDebugEnabled()) {
log.debug("Destroying the Template named : " + artifactName);
}
tm.destroy();
if (log.isDebugEnabled()) {
log.debug("Template Undeployment of the template named : "
+ artifactName + " : Completed");
}
log.info("Template named '" + tm.getName() + "' has been undeployed");