This method looks like a duplicate of the code in the XWiki class. Why
is that?
Yes this is a duplicate, the problem here is that WatchListJob gets a
wrapped context and getVirtualWikisDatabaseNames isn't accessible from
api.XWiki.
IMHO the underlying problem is that jobs don't get an unwrapped
context and it'll have to be fixed, I've prefered to duplicate this
method in the plugin instead of adding a new method to api.XWiki,
please tell me if I was wrong.
JV.