code: @Override
      public void registerObject(Object object) {
          if (object instanceof IManagedContext) {
              managedContexts.add((IManagedContext<?>) object);
          }
      }
docs: Register an object with the context manager if it implements the IManagedContext interface.
  
  @param object Object to register.