if (log.isDebugEnabled()) {
log.debug("Restoring the StartupTask with name : " + artifactName + " : Started");
}
try {
Startup st = getSynapseConfiguration().getStartup(artifactName);
OMElement stElem = StartupFinder.getInstance().serializeStartup(null, st);
if (st.getFileName() != null) {
String fileName = getServerConfigurationInformation().getSynapseXMLLocation()
+ File.separator + MultiXMLConfigurationBuilder.TASKS_DIR
+ File.separator + st.getFileName();
writeToFile(stElem, fileName);
if (log.isDebugEnabled()) {
log.debug("Restoring the StartupTask with name : " + artifactName + " : Completed");
}
log.info("StartupTask named '" + artifactName + "' has been restored");