Yep, I misread, so scopes[] is of the form e.g. "scopeA", "scopeA::scopeB", etc.
I assume m_managedFileScopesMap built up in getManagedFileScopes are fully qualified scopes ?