String lowercaseTableName = entity.externalName().toLowerCase();
if (tableName.equals(lowercaseTableName))
{
// Prefer the parent entity as long as it is using the same table
EOEntity root = entity;
while (root.parentEntity() != null &&
lowercaseTableName.equalsIgnoreCase(root.parentEntity().externalName()))
root = root.parentEntity();
if (! possibleEntities.containsObject(root))
possibleEntities.addObject(root);
}