code: public static boolean validateResource(String uriString) {
          try {
              URI uri = UriBasedVehicleInterfaceMixin.createUri(massageUri(uriString));
              return UriBasedVehicleInterfaceMixin.validateResource(uri) &&
                  uri.getPort() < 65536;
          } catch(DataSourceException e) {
              return false;
          }
      }
docs: Return true if the address and port are valid.
  
  @return true if the address and port are valid.