Should probably have function / check to detect unknown namespaces, as building aggregate wrappers depends on that - possibly gather namespaces from metadata?
More functions to handle known and existing namespaces
Extend Metadata and Entity modules with public functions for listing namespaces, detecting unknown ones, etc?