title: Error with classloader in Keycloak and third party lib
body: <p>I'm using Keycloak and some SPI what using different third party libraries.
  One of a libs containg some resource files inside of it.
  When I'm starting Keycloak, keycloak-server.war calling a SPI my-module.war.</p>
  <p>Third party lib (in my-module.war) trying to find resource file by classloader with this line:</p>
  <pre><code>ClassLoader cl = Thread.currentThread().getContextClassLoader();
  </code></pre>
  <p>But when this line is executing I get &quot;deployment.keycloak-server.war&quot; classloader instead of &quot;deployment.my-module.war&quot; and module can't find own resource by this wrong classloader.</p>
  <p>How can I avoid calling wrong classloader?</p>