Simplified detection of the object instance used to derive the Entity class.