Program: 16484
Project: 16484
Buggy source:
/** 
 * Parses client-config. 
 */
private static void parseSystemConfig(Configuration config,Element el) throws Exception {
  String s=el.getElementValue("String_Node_Str",true);
  if (s != null) {
    final boolean enable="String_Node_Str".equals(s);
    if (!enable)     log.info("String_Node_Str");
    config.enableEventThread(enable);
  }
  Integer v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setMaxSpareThreads(v.intValue());
  v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setMaxSuspendedThreads(v.intValue());
  v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setEventTimeWarning(v.intValue());
  v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setMaxUploadSize(v.intValue());
  v=parseInteger(el,"String_Node_Str",true);
  if (v != null)   config.setMaxProcessTime(v.intValue());
  s=el.getElementValue("String_Node_Str",true);
  if (s != null)   config.setUploadCharset(s);
  s=el.getElementValue("String_Node_Str",true);
  if (s != null)   config.setResponseCharset(s);
  s=el.getElementValue("String_Node_Str",true);
  if (s != null)   config.setCrawlable(!"String_Node_Str".equals(s));
  s=el.getElementValue("String_Node_Str",true);
  if (s != null && s.length() != 0)   config.addLabelLocation(s);
  Class cls=parseClass(el,"String_Node_Str",CharsetFinder.class);
  if (cls != null)   config.setUploadCharsetFinder((CharsetFinder)cls.newInstance());
  cls=parseClass(el,"String_Node_Str",DesktopCacheProvider.class);
  if (cls != null)   config.setDesktopCacheProviderClass(cls);
  cls=parseClass(el,"String_Node_Str",UiFactory.class);
  if (cls != null)   config.setUiFactoryClass(cls);
  cls=parseClass(el,"String_Node_Str",FailoverManager.class);
  if (cls != null)   config.setFailoverManagerClass(cls);
  cls=parseClass(el,"String_Node_Str",UiEngine.class);
  if (cls != null)   config.setUiEngineClass(cls);
  cls=parseClass(el,"String_Node_Str",IdGenerator.class);
  if (cls != null)   config.setIdGeneratorClass(cls);
  cls=parseClass(el,"String_Node_Str",SessionCache.class);
  if (cls != null)   config.setSessionCacheClass(cls);
  cls=parseClass(el,"String_Node_Str",AuDecoder.class);
  if (cls != null)   config.setAuDecoderClass(cls);
  cls=parseClass(el,"String_Node_Str",WebApp.class);
  if (cls != null)   config.setWebAppClass(cls);
  cls=parseClass(el,"String_Node_Str",Cache.class);
  if (cls != null)   ComponentsCtrl.setEventMethodCache((Cache)cls.newInstance());
  cls=parseClass(el,"String_Node_Str",AuWriter.class);
  if (cls != null)   AuWriters.setImplementationClass(cls);
}

Fixed version (ground truth):
/** 
 * Parses client-config. 
 */
private static void parseSystemConfig(Configuration config,Element el) throws Exception {
  String s=el.getElementValue("String_Node_Str",true);
  if (s != null) {
    final boolean enable="String_Node_Str".equals(s);
    if (!enable)     log.info("String_Node_Str");
    config.enableEventThread(enable);
  }
  Integer v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setMaxSpareThreads(v.intValue());
  v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setMaxSuspendedThreads(v.intValue());
  v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setEventTimeWarning(v.intValue());
  v=parseInteger(el,"String_Node_Str",false);
  if (v != null)   config.setMaxUploadSize(v.intValue());
  v=parseInteger(el,"String_Node_Str",true);
  if (v != null)   config.setMaxProcessTime(v.intValue());
  s=el.getElementValue("String_Node_Str",true);
  if (s != null)   config.setUploadCharset(s);
  s=el.getElementValue("String_Node_Str",true);
  if (s != null)   config.setResponseCharset(s);
  s=el.getElementValue("String_Node_Str",true);
  if (s != null)   config.setCrawlable(!"String_Node_Str".equals(s));
  for (Iterator it=el.getElements("String_Node_Str").iterator(); it.hasNext(); ) {
    final Element elinner=(Element)it.next();
    final String path=elinner.getText(true);
    if (!Strings.isEmpty(path))     config.addLabelLocation(path);
  }
  Class cls=parseClass(el,"String_Node_Str",CharsetFinder.class);
  if (cls != null)   config.setUploadCharsetFinder((CharsetFinder)cls.newInstance());
  cls=parseClass(el,"String_Node_Str",DesktopCacheProvider.class);
  if (cls != null)   config.setDesktopCacheProviderClass(cls);
  cls=parseClass(el,"String_Node_Str",UiFactory.class);
  if (cls != null)   config.setUiFactoryClass(cls);
  cls=parseClass(el,"String_Node_Str",FailoverManager.class);
  if (cls != null)   config.setFailoverManagerClass(cls);
  cls=parseClass(el,"String_Node_Str",UiEngine.class);
  if (cls != null)   config.setUiEngineClass(cls);
  cls=parseClass(el,"String_Node_Str",IdGenerator.class);
  if (cls != null)   config.setIdGeneratorClass(cls);
  cls=parseClass(el,"String_Node_Str",SessionCache.class);
  if (cls != null)   config.setSessionCacheClass(cls);
  cls=parseClass(el,"String_Node_Str",AuDecoder.class);
  if (cls != null)   config.setAuDecoderClass(cls);
  cls=parseClass(el,"String_Node_Str",WebApp.class);
  if (cls != null)   config.setWebAppClass(cls);
  cls=parseClass(el,"String_Node_Str",Cache.class);
  if (cls != null)   ComponentsCtrl.setEventMethodCache((Cache)cls.newInstance());
  cls=parseClass(el,"String_Node_Str",AuWriter.class);
  if (cls != null)   AuWriters.setImplementationClass(cls);
}