The local property `namespacePrefix` already contains the namespace together with the namespace separator if the namespace isn't empty.
To get the internal key a simple `$internalKey = $this->namespacePrefix . $normalizedKey` should be enough. Only watch out that the property was already initialized (`getMongoDBResource()` was called before)