Use entity name and not xref to EntityMetaData