Program: 11089
Project: 11089
Buggy source:
/** 
 * Fill the params with the values in the   {@link BoreholeLayer} specific XMLelements.
 */
public static AVList getParamsFromDocument(Element domElement,AVList params){
  if (params == null)   params=new AVListImpl();
  XPath xpath=WWXML.makeXPath();
  WWXML.checkAndSetStringParam(domElement,params,AVKey.URL,"String_Node_Str",xpath);
  WWXML.checkAndSetLongParam(domElement,params,AVKey.EXPIRY_TIME,"String_Node_Str",xpath);
  WWXML.checkAndSetDateTimeParam(domElement,params,AVKey.EXPIRY_TIME,"String_Node_Str",DATE_TIME_PATTERN,xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKey.DATA_CACHE_NAME,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.POINT_TYPE,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.BOREHOLE_UNIQUE_IDENTIFIER_ATTRIBUTE,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.BOREHOLE_SAMPLE_DEPTH_FROM_ATTRIBUTE,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.BOREHOLE_SAMPLE_DEPTH_TO_ATTRIBUTE,"String_Node_Str",xpath);
  setupBoreholeProvider(domElement,xpath,params);
  Element styles=WWXML.getElement(domElement,"String_Node_Str",xpath);
  if (styles != null) {
    StyleAndAttributeFactory.addStyles(styles,xpath,AVKeyMore.BOREHOLE_STYLES,params);
  }
  Element attributes=WWXML.getElement(domElement,"String_Node_Str",xpath);
  if (attributes != null) {
    StyleAndAttributeFactory.addAttributes(attributes,xpath,AVKeyMore.BOREHOLE_ATTRIBUTES,params);
  }
  Element sampleStyles=WWXML.getElement(domElement,"String_Node_Str",xpath);
  if (sampleStyles != null) {
    StyleAndAttributeFactory.addStyles(sampleStyles,xpath,AVKeyMore.BOREHOLE_SAMPLE_STYLES,params);
  }
  Element sampleAttributes=WWXML.getElement(domElement,"String_Node_Str",xpath);
  if (sampleAttributes != null) {
    StyleAndAttributeFactory.addAttributes(sampleAttributes,xpath,AVKeyMore.BOREHOLE_SAMPLE_ATTRIBUTES,params);
  }
  return params;
}

Fixed version (ground truth):
/** 
 * Fill the params with the values in the   {@link BoreholeLayer} specific XMLelements.
 */
public static AVList getParamsFromDocument(Element domElement,AVList params){
  if (params == null)   params=new AVListImpl();
  XPath xpath=WWXML.makeXPath();
  WWXML.checkAndSetStringParam(domElement,params,AVKey.URL,"String_Node_Str",xpath);
  WWXML.checkAndSetLongParam(domElement,params,AVKey.EXPIRY_TIME,"String_Node_Str",xpath);
  WWXML.checkAndSetDateTimeParam(domElement,params,AVKey.EXPIRY_TIME,"String_Node_Str",DATE_TIME_PATTERN,xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKey.DATA_CACHE_NAME,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.POINT_TYPE,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.BOREHOLE_UNIQUE_IDENTIFIER_ATTRIBUTE,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.BOREHOLE_SAMPLE_DEPTH_FROM_ATTRIBUTE,"String_Node_Str",xpath);
  WWXML.checkAndSetStringParam(domElement,params,AVKeyMore.BOREHOLE_SAMPLE_DEPTH_TO_ATTRIBUTE,"String_Node_Str",xpath);
  setupBoreholeProvider(domElement,xpath,params);
  Element styles=WWXML.getElement(domElement,"String_Node_Str",xpath);
  StyleAndAttributeFactory.addStyles(styles,xpath,AVKeyMore.BOREHOLE_STYLES,params);
  Element attributes=WWXML.getElement(domElement,"String_Node_Str",xpath);
  StyleAndAttributeFactory.addAttributes(attributes,xpath,AVKeyMore.BOREHOLE_ATTRIBUTES,params);
  Element sampleStyles=WWXML.getElement(domElement,"String_Node_Str",xpath);
  StyleAndAttributeFactory.addStyles(sampleStyles,xpath,AVKeyMore.BOREHOLE_SAMPLE_STYLES,params);
  Element sampleAttributes=WWXML.getElement(domElement,"String_Node_Str",xpath);
  StyleAndAttributeFactory.addAttributes(sampleAttributes,xpath,AVKeyMore.BOREHOLE_SAMPLE_ATTRIBUTES,params);
  return params;
}