code: public static void validateURI(String uri) throws ServiceException {
          if (uri == null || uri.isEmpty() || !validateRequiredField(uri, urlRegEx) || !isValidBrace(uri)) {
              throw new ServiceException(ErrorCode.SERVICE_INSTANCE_URI_FORMAT_ERROR);
          }
      }
docs: Validate the ServiceInstance URI.
  
  @param uri
  the URI String.
  @throws ServiceException