code: private void addAuditRecord(Context context,
                                  DOWriter w,
                                  String action,
                                  String componentID,
                                  String justification,
                                  Date nowUTC) throws ServerException {
          AuditRecord audit = new AuditRecord();
          audit.id = w.newAuditRecordID();
          audit.processType = "Fedora API-M";
          audit.action = action;
          audit.componentID = componentID;
          audit.responsibility =
                  context.getSubjectValue(Constants.SUBJECT.LOGIN_ID.uri);
          audit.date = nowUTC;
          audit.justification = justification;
          w.getAuditRecords().add(audit);
      }
docs: Creates a new audit record and adds it to the digital object audit trail.