No it's actually not related to WildFly, but to grab a running CacheManager from anywhere.
For the WildFly specific case I'd actually recommend to use FORK..  I should write a test for that and provide a specific configuration attribute for it.  -> OGM-456