Program: 84602
Project: 84602
Buggy source:
/** 
 * This method will find and cache this module's servlets (so that it doesn't have to look them up every time)
 * @param mod
 * @return this module's servlet map
 */
public static Map<String,HttpServlet> loadServlets(Module mod){
  Element rootNode=mod.getConfig().getDocumentElement();
  NodeList servletTags=rootNode.getElementsByTagName("String_Node_Str");
  Map<String,HttpServlet> servletMap=new HashMap<String,HttpServlet>();
  for (int i=0; i < servletTags.getLength(); i++) {
    Node node=servletTags.item(i);
    NodeList childNodes=node.getChildNodes();
    String name="String_Node_Str", className="String_Node_Str";
    for (int j=0; j < childNodes.getLength(); j++) {
      Node childNode=childNodes.item(j);
      if ("String_Node_Str".equals(childNode.getNodeName()))       name=childNode.getTextContent();
 else       if ("String_Node_Str".equals(childNode.getNodeName()))       className=childNode.getTextContent();
    }
    if (name.length() == 0 || className.length() == 0) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ className+ "String_Node_Str"+ mod.getName());
      continue;
    }
    HttpServlet httpServlet=null;
    try {
      httpServlet=(HttpServlet)ModuleFactory.getModuleClassLoader(mod).loadClass(className).newInstance();
    }
 catch (    ClassNotFoundException e) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ mod.getName(),e);
      continue;
    }
catch (    IllegalAccessException e) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ mod.getName(),e);
      continue;
    }
catch (    InstantiationException e) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ mod.getName(),e);
      continue;
    }
    servletMap.put(name,httpServlet);
  }
  moduleServlets.put(mod,servletMap);
  return servletMap;
}

Fixed version (ground truth):
/** 
 * This method will find and cache this module's servlets (so that it doesn't have to look them up every time)
 * @param mod
 * @return this module's servlet map
 */
public static Map<String,HttpServlet> loadServlets(Module mod){
  Element rootNode=mod.getConfig().getDocumentElement();
  NodeList servletTags=rootNode.getElementsByTagName("String_Node_Str");
  Map<String,HttpServlet> servletMap=new HashMap<String,HttpServlet>();
  for (int i=0; i < servletTags.getLength(); i++) {
    Node node=servletTags.item(i);
    NodeList childNodes=node.getChildNodes();
    String name="String_Node_Str", className="String_Node_Str";
    for (int j=0; j < childNodes.getLength(); j++) {
      Node childNode=childNodes.item(j);
      if ("String_Node_Str".equals(childNode.getNodeName())) {
        if (childNode.getTextContent() != null)         name=childNode.getTextContent().trim();
      }
 else       if ("String_Node_Str".equals(childNode.getNodeName())) {
        if (childNode.getTextContent() != null)         className=childNode.getTextContent().trim();
      }
    }
    if (name.length() == 0 || className.length() == 0) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ className+ "String_Node_Str"+ mod.getName());
      continue;
    }
    HttpServlet httpServlet=null;
    try {
      httpServlet=(HttpServlet)ModuleFactory.getModuleClassLoader(mod).loadClass(className).newInstance();
    }
 catch (    ClassNotFoundException e) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ mod.getName(),e);
      continue;
    }
catch (    IllegalAccessException e) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ mod.getName(),e);
      continue;
    }
catch (    InstantiationException e) {
      log.warn("String_Node_Str" + name + "String_Node_Str"+ mod.getName(),e);
      continue;
    }
    servletMap.put(name,httpServlet);
  }
  moduleServlets.put(mod,servletMap);
  return servletMap;
}