Replaced deprecated getEntityNamespace by getAliasNamespace