Program: 124703
Project: 124703
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","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",serviceProperties.getResourceManager()});
  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"});
  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 yarnPrincipal=serviceProperties.getJtOrRmPrincipal();
    ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",yarnPrincipal});
  }
  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]);
}

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","String_Node_Str"});
  ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",serviceProperties.getResourceManager()});
  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"});
  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) {
    setMaprTicketPropertiesConfig(serviceProperties);
  }
  if (useKrb) {
    String yarnPrincipal=serviceProperties.getJtOrRmPrincipal();
    ReflectionUtils.invokeMethod(conf,"String_Node_Str",new Object[]{"String_Node_Str",yarnPrincipal});
    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});
    }
  }
  if (useMaprTicket) {
    setMaprTicketConfig(serviceProperties,classLoader,useKrb);
  }
  Object jc=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{conf});
  return ReflectionUtils.invokeMethod(jc,"String_Node_Str",new Object[0]);
}