private void addRuntime(MongoRuntime runtime, boolean save) throws Exception {
   super.add(runtime);
   if (save) {
     super.save();
   }
   processListeners(runtime, true);
 }
 /**
  * Creates a Manager.
  *
  * @param name The name of the stream to manage.
  * @param data The data to pass to the Manager.
  * @param factory The factory to use to create the Manager.
  * @param <T> The type of the OutputStreamManager.
  * @return An OutputStreamManager.
  */
 public static <T> OutputStreamManager getManager(
     final String name,
     final T data,
     final ManagerFactory<? extends OutputStreamManager, T> factory) {
   return AbstractManager.getManager(name, factory, data);
 }
 public void removeRuntime(MongoRuntime runtime) throws Exception {
   super.remove(runtime);
   super.save();
   processListeners(runtime, false);
   // runtime.dispose();
 }