class BrowseStateContributor implements StateContributor {

  @Override
  public Map<String, Object> getState() {
    Map<String, Object> state = new HashMap<>();
    state.put("rebuildingRepositories", rebuildingRepositoriesCache.get());
    state.put("browseTreeMaxNodes", browseNodeConfiguration.getMaxNodes());

    return state;
  }

  @Inject public  BrowseStateContributor(
      final BrowseNodeConfiguration browseNodeConfiguration,
      final TaskScheduler taskScheduler,
      @Named("${nexus.coreui.state.rebuildingRepositoryTasksCacheTTL:-60}") long rebuildingRepositoriesCacheTTL);

}