Program: 19267
Project: 19267
Buggy source:
private void addDatasetResults(int stationNumber){
  String varNameLen=Integer.toString(variableNames.length + 1);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",varNameLen,stationNumber);
  document=XMLDomUtils.addNodeAndAttribute(document,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  setDataValues(stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAndAttribute(document,"String_Node_Str","String_Node_Str","String_Node_Str",BLOCK_SEPERATOR,stationNumber);
  XMLDomUtils.setAttributeFromNode(document,"String_Node_Str","String_Node_Str","String_Node_Str",DECIMAL_SEPERATOR);
  XMLDomUtils.setAttributeFromNode(document,"String_Node_Str","String_Node_Str","String_Node_Str",TOKEN_SEPERATOR);
  try {
    document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",createObservationString(),stationNumber);
  }
 catch (  Exception ex) {
    setupExceptionOutput(ex.getMessage());
    Logger.getLogger(SOSGetObservationRequestHandler.class.getName()).log(Level.SEVERE,null,ex);
  }
}

Fixed version (ground truth):
private void addDatasetResults(int stationNumber){
  String varNameLen=Integer.toString(variableNames.length + 1);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",varNameLen,stationNumber);
  document=XMLDomUtils.addNodeAndAttribute(document,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  setDataValues(stationNumber);
  document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",stationNumber);
  document=XMLDomUtils.addNodeAndAttribute(document,"String_Node_Str","String_Node_Str","String_Node_Str",BLOCK_SEPERATOR,stationNumber);
  XMLDomUtils.setAttributeFromNode(document,"String_Node_Str","String_Node_Str","String_Node_Str",DECIMAL_SEPERATOR);
  XMLDomUtils.setAttributeFromNode(document,"String_Node_Str","String_Node_Str","String_Node_Str",TOKEN_SEPERATOR);
  try {
    document=XMLDomUtils.addNodeAllOptions(document,"String_Node_Str","String_Node_Str",createObservationString(stationNumber),stationNumber);
  }
 catch (  Exception ex) {
    setupExceptionOutput(ex.getMessage());
    Logger.getLogger(SOSGetObservationRequestHandler.class.getName()).log(Level.SEVERE,null,ex);
  }
}