Program: 124758
Project: 124758
Buggy source:
private void setMaprTicketConfig(Object config,IMetadataConnection metadataConn,ClassLoader classLoader,boolean useKerberos) throws Exception {
  ReflectionUtils.invokeMethod(config,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  String mapRTicketUsername=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_USERNAME);
  String mapRTicketPassword=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_MAPRTICKET_PASSWORD);
  String mapRTicketCluster=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_MAPRTICKET_CLUSTER);
  String mapRTicketDuration=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_MAPRTICKET_DURATION);
  Long desiredTicketDurInSecs=86400L;
  if (mapRTicketDuration != null && StringUtils.isNotBlank(mapRTicketDuration)) {
    desiredTicketDurInSecs=Long.parseLong(mapRTicketDuration);
  }
  Object mapRClientConfig=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{});
  if (useKerberos) {
    System.setProperty("String_Node_Str","String_Node_Str");
    ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketCluster),desiredTicketDurInSecs});
  }
 else {
    String decryptedPassword=PasswordEncryptUtil.encryptPassword(mapRTicketPassword);
    ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{false},boolean.class);
    ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketCluster),ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketUsername),decryptedPassword,desiredTicketDurInSecs});
  }
}

Fixed version (ground truth):
private void setMaprTicketConfig(Object config,IMetadataConnection metadataConn,ClassLoader classLoader,boolean useKerberos) throws Exception {
  ReflectionUtils.invokeMethod(config,"String_Node_Str",new Object[]{"String_Node_Str","String_Node_Str"});
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  String mapRTicketUsername=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_USERNAME);
  String mapRTicketPassword=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_MAPRTICKET_PASSWORD);
  String mapRTicketCluster=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_MAPRTICKET_CLUSTER);
  String mapRTicketDuration=(String)metadataConn.getParameter(ConnParameterKeys.CONN_PARA_KEY_HBASE_AUTHENTICATION_MAPRTICKET_DURATION);
  Long desiredTicketDurInSecs=86400L;
  if (mapRTicketDuration != null && StringUtils.isNotBlank(mapRTicketDuration)) {
    if (mapRTicketDuration.endsWith("String_Node_Str")) {
      mapRTicketDuration=mapRTicketDuration.substring(0,mapRTicketDuration.length() - 1);
    }
    desiredTicketDurInSecs=Long.parseLong(mapRTicketDuration);
  }
  Object mapRClientConfig=ReflectionUtils.newInstance("String_Node_Str",classLoader,new Object[]{});
  if (useKerberos) {
    System.setProperty("String_Node_Str","String_Node_Str");
    ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketCluster),desiredTicketDurInSecs});
  }
 else {
    ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{false},boolean.class);
    ReflectionUtils.invokeMethod(mapRClientConfig,"String_Node_Str",new Object[]{ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketCluster),ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketUsername),ConnectionContextHelper.getParamValueOffContext(metadataConn,mapRTicketPassword),desiredTicketDurInSecs});
  }
}