code: public static Object createShutdownProxy(Object o,
                                             Shutdown shutdown)
    {
      return createShutdownProxy(o,
                                 null,
                                 shutdown);
  
    }
docs: Creates the proxy to check for shutdown. Uses all interfaces defined by
  this object (and recursively).
  
  @param o
  @param shutdown
  @return the proxy