class ProxyHelper {

   static String getProtocol( String url )
   {
       log.debug( "getProtocol( url = '{}' )", url );
       String protocol = DEFAULT_PROTOCOL;

       try
       {
           URL u = new URL( url );
           protocol = u.getProtocol(  );
       }
       catch ( MalformedURLException e )
       {
           String message = String.format( "Failed to parse URL '%s'", url );
           log.warn( message, e );
       }

       log.debug( "getProtocol(  ): protocol = '{}'", protocol );
       return protocol;
   }

   private  ProxyHelper(  );

}