private static RejectionNote createRejectionNote(
     String rejectionNoteLabel,
     Code rejectionNoteCode,
     RejectionNote.AcceptPreviousRejectedInstance acceptPreviousRejectedInstance,
     Code... overwritePreviousRejection) {
   RejectionNote rjNote = new RejectionNote(rejectionNoteLabel);
   rjNote.setRejectionNoteCode(rejectionNoteCode);
   rjNote.setRevokeRejection(rejectionNoteCode == REVOKE_REJECTION);
   rjNote.setAcceptPreviousRejectedInstance(acceptPreviousRejectedInstance);
   rjNote.setOverwritePreviousRejection(overwritePreviousRejection);
   return rjNote;
 }