this.getMessageConfDocumentStr = fileUtils.readFile(this.getMessageFile);
// Insert DTD into xml get message configuration file
this.getMessageConfDocumentStr = insertDTD(imh, this.getMessageConfDocumentStr);
Logger logger = (Logger)imh.getEntry(InitMapHolder.LOGGER);
ErrorLogEntry errEntry = new ErrorLogEntry(this, VERSION);
if (this.getMessageConfDocumentStr != null) {
try {
this.getMessageConfDocumentStr = replaceProperties(this.getMessageConfDocumentStr);
this.getMessageConfDocumentStr = XmultraConfig.replaceSymbols(this.getMessageConfDocumentStr);
}
catch (InvalidConfigFileFormatException e) {
errEntry.setThrowable(e);
errEntry.setAppContext("GetMessage()");
errEntry.setAppMessage("Error while parsing properties in GetMessage file: " +
this.getMessageFile.getPath() );
logger.logError(errEntry);
}
// Write the file back with insertion of DTD and properties replaced.
//// fileUtils.writeFile(this.getMessageFile, getMessageConfDocumentStr);
}
// Can throw SAXException
Document getMessageConfDocument = null;
try {
getMessageConfDocument =
xmlParseUtils.convertStringToXmlDocument(getMessageConfDocumentStr, validate);
}
catch (SAXException e) {
errEntry.setThrowable(e);
errEntry.setAppContext("insertDTD()");
errEntry.setAppMessage(
"Error while parsing config file: "
+ this.getMessageFile.getName());
logger.logError(errEntry);
return;
}
Node messageNode = xmlParseUtils.getSingletonNode(
getMessageConfDocument,