code: @SuppressWarnings("unchecked")
      private <T> List<WatcherRegistration<T>> getWatcherRegistrations(Id<T> id) {
          return (List<WatcherRegistration<T>>)((Container)watcherRegistry).getAll(id.type());
      }
docs: returns all the watchers associated to the type of the given id.