code: private static Originator mapOriginatorType(OriginatorType originatorType) {
          Originator originator = new Originator();
          if (originatorType != null) {
              originator.setCustomId(originatorType.getCustomId());
              originator.setHostname(originatorType.getHostname());
              originator.setIp(originatorType.getIp());
              originator.setProcessId(originatorType.getProcessId());
              originator.setPrincipal(originatorType.getPrincipal());
          }
          return originator;
      }
docs: Map originator type.
  
  @param originatorType the originator type
  @return the originator