Introduced NestedIdentity to encapsulate which nested object has matched.