Program: 124728
Project: 124728
Buggy source:
@Override protected Object check(HadoopServiceProperties serviceProperties,ClassLoader classLoader) throws Exception {
  Object configuration=Class.forName("String_Node_Str",true,classLoader).newInstance();
  Object conf=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{configuration});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",serviceProperties.getJobTracker()});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  setHadoopProperties(conf,serviceProperties);
  boolean useKrb=serviceProperties.isUseKrb();
  boolean useMaprTicket=serviceProperties.isMaprT();
  if (useMaprTicket) {
    setMaprTicketConfig(serviceProperties,classLoader,useKrb);
  }
  if (useKrb) {
    String mrPrincipal=serviceProperties.getJtOrRmPrincipal();
    ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",mrPrincipal});
    boolean useKeytab=serviceProperties.isUseKeytab();
    if (useKeytab) {
      String keytabPrincipal=serviceProperties.getKeytabPrincipal();
      String keytab=serviceProperties.getKeytab();
      ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new String[]{keytabPrincipal,keytab});
    }
  }
  Object jc=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{conf});
  return ReflectionUtils.invokeMethod(jc,"String_Node_Str",new Object[0]);
}

Fixed version (ground truth):
@Override protected Object check(HadoopServiceProperties serviceProperties,ClassLoader classLoader) throws Exception {
  Object configuration=Class.forName("String_Node_Str",true,classLoader).newInstance();
  Object conf=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{configuration});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",serviceProperties.getJobTracker()});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  setHadoopProperties(conf,serviceProperties);
  boolean useKrb=serviceProperties.isUseKrb();
  boolean useMaprTicket=serviceProperties.isMaprT();
  if (useKrb) {
    String mrPrincipal=serviceProperties.getJtOrRmPrincipal();
    ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",mrPrincipal});
  }
  if (useMaprTicket) {
    setMaprTicketConfig(serviceProperties,classLoader,useKrb);
  }
  boolean useKeytab=serviceProperties.isUseKeytab();
  if (useKrb && useKeytab) {
    String keytabPrincipal=serviceProperties.getKeytabPrincipal();
    String keytab=serviceProperties.getKeytab();
    ReflectionUtils.invokeStaticMethod("String_Node_Str",classLoader,"String_Node_Str",new String[]{keytabPrincipal,keytab});
  }
  Object jc=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{conf});
  return ReflectionUtils.invokeMethod(jc,"String_Node_Str",new Object[0]);
}