code: public Object create(Class api, String urlName)
          throws MalformedURLException
      {
          if (api == null)
              throw new NullPointerException();
  
          URL url = new URL(urlName);
  
          try {
              // clear old keepalive connections
              HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  
              conn.setConnectTimeout(10);
              conn.setReadTimeout(10);
  
              conn.setRequestProperty("Connection", "close");
  
              InputStream is = conn.getInputStream();
  
              is.close();
  
              conn.disconnect();
          } catch (IOException e) {
          }
  
          BurlapProxy handler = new BurlapProxy(this, url);
  
          return Proxy.newProxyInstance(api.getClassLoader(),
              new Class[] { api,
                      BurlapRemoteObject.class },
              handler);
      }
docs: Creates a new proxy with the specified URL.  The returned object
  is a proxy with the interface specified by api.
  
  <pre>
  String url = "http://localhost:8080/ejb/hello");
  HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
  </pre>
  
  @param api the interface the proxy class needs to implement
  @param url the URL where the client object is located.
  
  @return a proxy to the object with the specified interface.