docs: public void registerKvState(KeyGroupRange keyGroupRange, KvStateID kvStateId, InetSocketAddress kvStateAddress) {
  
  		if (keyGroupRange.getStartKeyGroup() < 0 || keyGroupRange.getEndKeyGroup() >= numKeyGroups) {
  			throw new IndexOutOfBoundsException("Key group index");
  		}
  
  		for (int kgIdx = keyGroupRange.getStartKeyGroup(); kgIdx <= keyGroupRange.getEndKeyGroup(); ++kgIdx) {
  
  			if (kvStateIds[kgIdx] == null && kvStateAddresses[kgIdx] == null) {
  				numRegisteredKeyGroups++;
  			}
  
  			kvStateIds[kgIdx] = kvStateId;
  			kvStateAddresses[kgIdx] = kvStateAddress;
  		}
  	}