An additional method 'CTX_finalSubentities' was added to NSEntityDescription class: it returns a list of sub-entities for a given entity which do not have their own sub-entities (are leafs in the entities inheritance tree).