code: @SuppressWarnings("unused")
      public static boolean isValidUri(String uri) {
  
          boolean result = false;
          try {
              new URI(uri);
              result = true;
          } catch (Exception e) {
              // nothing to do
          }
          return result;
      }
docs: Checks if the given URI is well formed.<p>
  
  @param uri the URI to check
  
  @return <code>true</code> if the given URI is well formed