if (log.isDebugEnabled()) {
log.debug("LocalEntry Update from file : " + fileName + " : Started");
}
try {
Entry e = EntryFactory.createEntry(artifactConfig, properties);
if (e != null) {
e.setFileName((new File(fileName)).getName());
if (log.isDebugEnabled()) {
log.debug("LocalEntry with key '" + e.getKey()
+ "' has been built from the file " + fileName);
}
getSynapseConfiguration().removeEntry(existingArtifactName);
if (!existingArtifactName.equals(e.getKey())) {
log.info("LocalEntry named " + existingArtifactName + " has been Undeployed");
}
getSynapseConfiguration().addEntry(e.getKey(), e);
if (log.isDebugEnabled()) {
log.debug("LocalEntry " + (existingArtifactName.equals(e.getKey()) ?
"update" : "deployment") + " from file : " + fileName + " : Completed");
}
log.info("LocalEntry named '" + e.getKey()
+ "' has been " + (existingArtifactName.equals(e.getKey()) ?
"updated" : "deployed") + " from file : " + fileName);
return e.getKey();
} else {
handleSynapseArtifactDeploymentError("LocalEntry Update Failed. The artifact " +
"described in the file " + fileName + " is not a LocalEntry");
}
} catch (Exception e) {