code: public void setDestinationUri(URI uri) {
          if (EventUtils.isEmptyOrNull(uri)) {
              LOGGER.error("The destination URI cannot be null");
              throw new IllegalArgumentException("The destination URI cannot be null");
          }
  
          // Try determining the host address
          InetAddress address;
          try {
              address = InetAddress.getByName(uri.getHost());
          } catch (Exception e) {
              LOGGER.error("The specified address could not be resolved");
              throw new IllegalArgumentException("The specified address could not be resolved");
          }
  
          setDestinationAddress(address);
  
          // Try determining the port
          int port = uri.getPort();
          if (port == -1) {
              LOGGER.warn("Invalid port specified in URI, using transport default port");
              port = AuditorModuleConfig.AUDITOR_AUDIT_REPOSITORY_DEFAULT_PORT;
          }
  
          setDestinationPort(port);
      }
docs: /* (non-Javadoc)
  @see org.openhealthtools.ihe.atna.auditor.events.AuditEventMessage#setDestinationUri(java.net.URI)