/**
   * Creates the CaseParticipantRole record.
   *
   * @param caseID CaseId of case to which the case participant belongs
   * @param caseParticipantRoleID Case participant Role ID
   * @param participantRoleID Participant Role ID
   * @param caseParticipantRoleType Case Participant Role Type
   * @return CaseParticipantRole
   */
  public CaseParticipantRole createCaseParticipantRoleRecord(
      final Number caseID,
      final Number caseParticipantRoleID,
      final Number participantRoleID,
      final String caseParticipantRoleType) {

    final CaseParticipantRole caseParticipantRoleRecord =
        CaseParticipantRole_Factory.getFactory().newInstance(this.getSession());

    caseParticipantRoleRecord.caseID().specifyValue(caseID);
    caseParticipantRoleRecord.caseParticipantRoleID().specifyValue(caseParticipantRoleID);
    caseParticipantRoleRecord.participantRoleID().specifyValue(participantRoleID);
    caseParticipantRoleRecord
        .typeCode()
        .specifyValue(
            new CodeTableItem(CASEPARTICIPANTROLETYPE.TABLENAME, caseParticipantRoleType));

    return caseParticipantRoleRecord;
  }