private void updateWatchedCollection(DocCollection newState) { watchedCollectionStates.put(newState.getName(), newState); log.info("Updating data for {} to ver {} ", newState.getName(), newState.getZNodeVersion()); this.clusterState = clusterState.copyWith(newState.getName(), newState); }