private static URL clearUserInfo(String systemID) {
    try {
      URL url = new URL(systemID);
      // Do not clear user info on "file" urls 'cause on Windows the drive will
      // have no ":"...
      if (!"file".equals(url.getProtocol())) {
        return attachUserInfo(url, null, null);
      }
      return url;
    } catch (MalformedURLException e) {
      return null;
    }
  }
private static URL clearUserInfo ( String systemID ) { try { URL url = new URL ( systemID ) ; if ( ! "file" . equals ( url . getProtocol ( ) ) ) { return attachUserInfo ( url , null , null ) ; } return url ; } catch ( MalformedURLException e ) { return null ; } }
Clears the user info from an url.

@param systemID
the url to be cleaned.
@return the cleaned url, or null if the argument is not an URL.