Program: 89337
Project: 89337
Buggy source:
/** 
 * @see org.alfresco.repo.action.executer.ActionExecuterAbstractBase#executeImpl(org.alfresco.service.cmr.action.Action,org.alfresco.service.cmr.repository.NodeRef)
 */
@Override protected void executeImpl(final Action action,final NodeRef actionedUponNodeRef){
  if (nodeService.exists(actionedUponNodeRef) == false) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (dictionaryService.isSubClass(nodeService.getType(actionedUponNodeRef),ContentModel.TYPE_CONTENT) == false) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ASPECT_RECORD)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ContentModel.ASPECT_WORKING_COPY)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ASPECT_RECORD_REJECTION_DETAILS)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ASPECT_SYNCED)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else {
    NodeRef filePlan=(NodeRef)action.getParameterValue(PARAM_FILE_PLAN);
    if (filePlan == null) {
      filePlan=filePlanAuthenticationService.runAsRmAdmin(new RunAsWork<NodeRef>(){
        @Override public NodeRef doWork() throws Exception {
          return filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
        }
      }
);
      if (filePlan == null) {
        if (logger.isDebugEnabled()) {
          logger.debug("String_Node_Str");
        }
        throw new AlfrescoRuntimeException("String_Node_Str");
      }
    }
 else {
      if (filePlanService.isFilePlan(filePlan) == false) {
        if (logger.isDebugEnabled()) {
          logger.debug("String_Node_Str");
        }
        throw new AlfrescoRuntimeException("String_Node_Str");
      }
    }
    boolean hideRecord=false;
    Boolean hideRecordValue=((Boolean)action.getParameterValue(PARAM_HIDE_RECORD));
    if (hideRecordValue != null) {
      hideRecord=hideRecordValue.booleanValue();
    }
    recordService.createRecord(filePlan,actionedUponNodeRef,!hideRecord);
  }
}

Fixed version (ground truth):
/** 
 * @see org.alfresco.repo.action.executer.ActionExecuterAbstractBase#executeImpl(org.alfresco.service.cmr.action.Action,org.alfresco.service.cmr.repository.NodeRef)
 */
@Override protected void executeImpl(final Action action,final NodeRef actionedUponNodeRef){
  if (!nodeService.exists(actionedUponNodeRef)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (!dictionaryService.isSubClass(nodeService.getType(actionedUponNodeRef),ContentModel.TYPE_CONTENT)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ASPECT_RECORD)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ContentModel.ASPECT_WORKING_COPY)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ASPECT_RECORD_REJECTION_DETAILS)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else   if (nodeService.hasAspect(actionedUponNodeRef,ASPECT_SYNCED)) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + actionedUponNodeRef.toString() + "String_Node_Str");
    }
  }
 else {
    NodeRef filePlan=(NodeRef)action.getParameterValue(PARAM_FILE_PLAN);
    if (filePlan == null) {
      filePlan=filePlanAuthenticationService.runAsRmAdmin(new RunAsWork<NodeRef>(){
        @Override public NodeRef doWork() throws Exception {
          return filePlanService.getFilePlanBySiteId(FilePlanService.DEFAULT_RM_SITE_ID);
        }
      }
);
      if (filePlan == null) {
        if (logger.isDebugEnabled()) {
          logger.debug("String_Node_Str");
        }
        throw new AlfrescoRuntimeException("String_Node_Str");
      }
    }
 else {
      if (!filePlanService.isFilePlan(filePlan)) {
        if (logger.isDebugEnabled()) {
          logger.debug("String_Node_Str");
        }
        throw new AlfrescoRuntimeException("String_Node_Str");
      }
    }
    boolean hideRecord=false;
    Boolean hideRecordValue=((Boolean)action.getParameterValue(PARAM_HIDE_RECORD));
    if (hideRecordValue != null) {
      hideRecord=hideRecordValue.booleanValue();
    }
    recordService.createRecord(filePlan,actionedUponNodeRef,!hideRecord);
  }
}