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