Adding HashMap approach for multiple namespaces