protected virtual NodeState ValidateNode(
ServerSystemContext context,
NodeHandle handle,
IDictionary<NodeId,NodeState> cache)
{
// lookup in cache.
NodeState target = FindNodeInCache(context, handle, cache);
if (target != null)
{
handle.Node = target;
handle.Validated = true;
return handle.Node;
}
// return default.
return handle.Node;
}