Fixed MNG-908: set the contextClassLoader to the classrealm of the currently executing plugin, so that both getClass().getClassLoader() and Thread.currentThread().getContextClassLoader() return the same classloader (and hence resources).