Oh, ok... Got it!
getInstanceByUid
- as the name itself - needs the actual the UID
of the object.
But - still - the original question is still valid: how do I get the instance of an object attached in a plugin configuration?
In the SDK v1, it was possible by simply using the method GetObjectClassBySID
...
Using SDK v2 this method is no more available.