code: public static GridRegistry newInstance(Hub hub) {
      DefaultGridRegistry registry = new DefaultGridRegistry(hub);
      registry.start();
      return registry;
    }
docs: Creates a new {@link GridRegistry} and starts it.
  
  @param hub the {@link Hub} to associate this registry with
  @return the registry