One (granted non-ideal) option is to answer Session#contains in the case of an enhanced entity by walking the EntityEntryContext#head/tail linked list to find a match.