public static URL makeURL(Object path,String defaultProtocol){
  try {
    URL url=makeURL(path);
    if (url == null && !WWUtil.isEmpty(path.toString()) && !WWUtil.isEmpty(defaultProtocol))     url=new URL(defaultProtocol,null,path.toString());
    return url;
  }
 catch (  Exception e) {
    return null;
  }
}

public static URL makeURL ( Object path , String defaultProtocol ) { try { URL url = makeURL ( path ) ; if ( url == null && ! WWUtil . isEmpty ( path . toString ( ) ) && ! WWUtil . isEmpty ( defaultProtocol ) ) url = new URL ( defaultProtocol , null , path . toString ( ) ) ; return url ; } catch ( Exception e ) { return null ; } }
creates a url from an object . if the object does not already convert directly to a url , a url with a specified protocol is created .
