code: public static Exception checkGrpcUrl(String url) {
          try {
  
              parseGrpcUrl(url);
              return null;
  
          } catch (Exception e) {
              return e;
          }
      }
docs: Check if the strings Grpc url is valid
  
  @param url
  @return Return the exception that indicates the error or null if ok.