public void visit(int nestingLevel, int pathId, ContextStatePathValueBinding binding, Object payload, ContextController contextController, ContextControllerInstanceHandle instanceHandle) {
ContextStatePathKey key = new ContextStatePathKey(nestingLevel, pathId, instanceHandle.getSubPathId());
int agentInstanceId = instanceHandle.getContextPartitionOrPathId();
states.put(key, new ContextStatePathValue(agentInstanceId, binding.toByteArray(payload), instanceHandle.getInstances().getState()));
ContextPartitionState state = instanceHandle.getInstances().getState();
ContextPartitionIdentifier identifier = contextController.getFactory().keyPayloadToIdentifier(payload);
ContextPartitionDescriptor descriptor = new ContextPartitionDescriptor(agentInstanceId, identifier, state);
contextPartitionInfo.put(agentInstanceId, descriptor);
}