Program: 92420
Project: 92420
Buggy source:
@Override public OutputResult writeOutput(Output output){
  logger.debug(output.toString());
  ClientCredentialsResourceDetails resourceDetails=new ClientCredentialsResourceDetails();
  resourceDetails.setClientId(clientId);
  resourceDetails.setClientSecret(clientSecret);
  resourceDetails.setAccessTokenUri(accessTokenUri);
  DefaultOAuth2ClientContext clientContext=new DefaultOAuth2ClientContext();
  OAuth2RestTemplate restTemplate=new OAuth2RestTemplate(resourceDetails,clientContext);
  MappingJackson2HttpMessageConverter converter=new MappingJackson2HttpMessageConverter();
  converter.setSupportedMediaTypes(Arrays.asList(MediaType.APPLICATION_JSON,MediaType.valueOf("String_Node_Str")));
  restTemplate.setMessageConverters(Arrays.<HttpMessageConverter<?>>asList(converter));
  OutputResult result=new OutputResult(output);
  String selectSQL=output.makeTempDBSelectStarSQL();
  SqlRowSet rowSet;
  try {
    rowSet=storage.getTempJdbcTemplate().queryForRowSet(selectSQL);
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str" + selectSQL);
  }
  List<EarlyAlert> earlyAlertList=new ArrayList<SSPEarlyAlertOutputHandler.EarlyAlert>();
  while (rowSet.next()) {
    if (!rowSet.wasNull()) {
      String student=rowSet.getString(1);
      String course=rowSet.getString(2);
      String risk=rowSet.getString(3);
      if (StringUtils.isNotBlank(risk) && ("String_Node_Str".equals(risk) || "String_Node_Str".equals(risk))) {
        EarlyAlert earlyAlert=new EarlyAlert(course,student,"String_Node_Str",risk,null);
        earlyAlertList.add(earlyAlert);
      }
      logger.debug(String.format("String_Node_Str",student,course,risk));
    }
  }
  if (earlyAlertList.size() > 0) {
    EarlyAlertMessage message=new EarlyAlertMessage("String_Node_Str","String_Node_Str",earlyAlertList);
    restTemplate.postForLocation(earlyAlertUrl,message);
  }
  return result;
}

Fixed version (ground truth):
@Override public OutputResult writeOutput(Output output){
  logger.debug(output.toString());
  ClientCredentialsResourceDetails resourceDetails=new ClientCredentialsResourceDetails();
  resourceDetails.setClientId(clientId);
  resourceDetails.setClientSecret(clientSecret);
  resourceDetails.setAccessTokenUri(accessTokenUri);
  DefaultOAuth2ClientContext clientContext=new DefaultOAuth2ClientContext();
  OAuth2RestTemplate restTemplate=new OAuth2RestTemplate(resourceDetails,clientContext);
  MappingJackson2HttpMessageConverter converter=new MappingJackson2HttpMessageConverter();
  converter.setSupportedMediaTypes(Arrays.asList(MediaType.APPLICATION_JSON,MediaType.valueOf("String_Node_Str")));
  restTemplate.setMessageConverters(Arrays.<HttpMessageConverter<?>>asList(converter));
  OutputResult result=new OutputResult(output);
  String selectSQL=output.makeTempDBSelectSQL();
  SqlRowSet rowSet;
  try {
    rowSet=storage.getTempJdbcTemplate().queryForRowSet(selectSQL);
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str" + selectSQL);
  }
  List<EarlyAlert> earlyAlertList=new ArrayList<SSPEarlyAlertOutputHandler.EarlyAlert>();
  while (rowSet.next()) {
    if (!rowSet.wasNull()) {
      String student=rowSet.getString(1);
      String course=rowSet.getString(2);
      String risk=rowSet.getString(3);
      if (StringUtils.isNotBlank(risk) && ("String_Node_Str".equals(risk) || "String_Node_Str".equals(risk))) {
        EarlyAlert earlyAlert=new EarlyAlert(course,student,"String_Node_Str",risk,null);
        earlyAlertList.add(earlyAlert);
      }
      logger.debug(String.format("String_Node_Str",student,course,risk));
    }
  }
  if (earlyAlertList.size() > 0) {
    EarlyAlertMessage message=new EarlyAlertMessage("String_Node_Str","String_Node_Str",earlyAlertList);
    restTemplate.postForLocation(earlyAlertUrl,message);
  }
  return result;
}