Throw exception if XWiki is not in virtual mode with message saying that you have to make sure property "xwiki.virtual" is setted to "xwiki.virtual=1" in xwiki.cfg file.