code: public CuratorFramework newManagedCurator(LifecycleEnvironment env) {
          CuratorFramework curator = newCurator();
          env.manage(new ManagedCuratorFramework(curator));
          return curator;
      }
docs: Return a managed Curator connection.  This created connection will be wrapped in a
  {@link ManagedCuratorFramework} and offered to the provided {@link LifecycleEnvironment} parameter.