org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/ShutdownProxy.java
public static Object createShutdownProxy(Object o,
                                           Shutdown shutdown)
  {
    return createShutdownProxy(o,
                               null,
                               shutdown);

  }
public static Object createShutdownProxy(Object o,
                                           Shutdown shutdown)
  {
    return createShutdownProxy(o,
                               null,
                               shutdown);

  }
Creates the proxy to check for shutdown. Uses all interfaces defined by
this object (and recursively).

@param o
@param shutdown
@return the proxy