while (modelsEnum.hasMoreElements()) {
EOModel model = (EOModel) modelsEnum.nextElement();
Enumeration entitiesEnum = model.entities().objectEnumerator();
while (entitiesEnum.hasMoreElements()) {
EOEntity partialExtensionEntity = (EOEntity) entitiesEnum.nextElement();
NSDictionary userInfo = partialExtensionEntity.userInfo();
NSDictionary entityModelerDictionary = (NSDictionary) userInfo.objectForKey("_EntityModeler");
if (entityModelerDictionary != null) {
String partialEntityName = (String) entityModelerDictionary.objectForKey("partialEntity");
if (partialEntityName != null) {
EOEntity partialEntity = modelGroup.entityNamed(partialEntityName);