code: public Subscription registerDolphinContext(ClientSession session, GarbageCollector garbageCollector) {
          Assert.requireNonNull(session, "session");
          Assert.requireNonNull(garbageCollector, "garbageCollector");
          DolphinSessionInfoMBean mBean = new DolphinSessionInfo(session, garbageCollector);
          return MBeanRegistry.getInstance().register(mBean, new MBeanDescription("com.canoo.dolphin", "DolphinSession", "session"));
      }
docs: Register a new dolphin session as a MBean
  @param session the session
  @return the subscription for deregistration