Better implementation of qualifiednameprovider