<div dir="ltr">Hi,<div><br></div><div>What about executing</div><div><br></div><div>ResteasyProviderFactory.pushContext(KeycloakApplication.class, this);</div><div><br></div><div>before the KeycloakSessionFactory is created? It would be sweet to be able to install, e.g, custom container filters.</div><div><br></div><div>I realise that it might not be the best idea to solve it, since the Application class might only be partially constructed when #getSingletons or #getClasses is called, but I think it&#39;s useful for plugging in extra monitoring or whatever.</div><div><br></div><div>Maybe an SPI with access to the singletons and classes sets?</div></div>