updated deprecated getEntityNamespace in page generator command

updated deprecated getEntityNamespace in page generator command