use webapp class loader

Sometimes this library is loaded from the common class loader while resources are still in the webapp class loader. Using the thread's classloader ensures that the webapp classloader is used, which typically falls back to the common classloader when the resource is not found in the webapp classloader.

This is also how spring does it.