this.buffer = new StringBuffer();
NodeList watchedProceduresList = watchedProceduresNode.getChildNodes();
procedureDestWriters = new HashMap<String,DestinationWriter>();
Node procedureNode = null;
String procedure = null;
DestinationWriter destWriter = null;
// Iterate through procedures for which data will be written
// and build a map containing entries consisting of a
// procedure name as the key and a destination writer as the value.
for (int i = 0; i < watchedProceduresList.getLength(); i++) {
procedureNode = watchedProceduresList.item(i);
NamedNodeMap procedureAttributes = procedureNode.getAttributes();
Node attribute =
procedureAttributes.getNamedItem(XmultraConfig.PROCEDURE_NAME_ATTRIBUTE);
if (attribute != null) {
procedure = attribute.getNodeValue();
if ( procedure != null && !procedure.equals("") ) {
destWriter = new DestinationWriter();
destWriter.init( imh,
procedureNode,
(DateUtils)imh.getEntry(InitMapHolder.DATE_UTILS) );
procedureDestWriters.put(procedure, destWriter);
}
}