Program: 114916
Project: 114916
Buggy source:
private void updateApiLifeCycleStatus(Tenant tenant) throws APIMigrationException {
  HashMap<String,String[]> statuses=new HashMap<>();
  statuses.put(APIStatus.PUBLISHED.toString(),new String[]{"String_Node_Str"});
  statuses.put(APIStatus.PROTOTYPED.toString(),new String[]{"String_Node_Str"});
  statuses.put(APIStatus.BLOCKED.toString(),new String[]{"String_Node_Str","String_Node_Str"});
  statuses.put(APIStatus.DEPRECATED.toString(),new String[]{"String_Node_Str","String_Node_Str"});
  statuses.put(APIStatus.RETIRED.toString(),new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
  log.debug("String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')');
  try {
    registryService.addDefaultLifecycles();
    GenericArtifact[] artifacts=registryService.getGenericAPIArtifacts();
    for (    GenericArtifact artifact : artifacts) {
      String currentState=artifact.getAttribute(APIConstants.API_OVERVIEW_STATUS);
      artifact.attachLifecycle(APIConstants.API_LIFE_CYCLE);
      String[] actions=statuses.get(currentState);
      if (actions != null) {
        for (        String action : actions) {
          artifact.invokeAction(action,APIConstants.API_LIFE_CYCLE);
        }
      }
    }
    log.debug("String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')');
  }
 catch (  RegistryException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
catch (  XMLStreamException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
catch (  FileNotFoundException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
catch (  UserStoreException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
}

Fixed version (ground truth):
private void updateApiLifeCycleStatus(Tenant tenant) throws APIMigrationException {
  HashMap<String,String[]> statuses=new HashMap<>();
  statuses.put(APIStatus.PUBLISHED.toString(),new String[]{"String_Node_Str"});
  statuses.put(APIStatus.PROTOTYPED.toString(),new String[]{"String_Node_Str"});
  statuses.put(APIStatus.BLOCKED.toString(),new String[]{"String_Node_Str","String_Node_Str"});
  statuses.put(APIStatus.DEPRECATED.toString(),new String[]{"String_Node_Str","String_Node_Str"});
  statuses.put(APIStatus.RETIRED.toString(),new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
  log.debug("String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')');
  try {
    registryService.addDefaultLifecycles();
    GenericArtifact[] artifacts=registryService.getGenericAPIArtifacts();
    for (    GenericArtifact artifact : artifacts) {
      String currentState=artifact.getAttribute(APIConstants.API_OVERVIEW_STATUS);
      if (currentState != null && !currentState.equalsIgnoreCase(artifact.getLifecycleState())) {
        artifact.attachLifecycle(APIConstants.API_LIFE_CYCLE);
        String[] actions=statuses.get(currentState);
        if (actions != null) {
          for (          String action : actions) {
            artifact.invokeAction(action,APIConstants.API_LIFE_CYCLE);
            if (log.isDebugEnabled()) {
              log.debug("String_Node_Str" + currentState + "String_Node_Str"+ action);
            }
          }
        }
      }
 else {
        log.info("String_Node_Str" + currentState + "String_Node_Str"+ artifact.getAttribute(APIConstants.API_OVERVIEW_NAME));
      }
    }
    log.debug("String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')');
  }
 catch (  RegistryException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
catch (  XMLStreamException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
catch (  FileNotFoundException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
catch (  UserStoreException e) {
    log.error("String_Node_Str" + "String_Node_Str" + tenant.getId() + '('+ tenant.getDomain()+ ')',e);
  }
}