Jedis caveat: Classloading nightmare

I recently encountered issues using BungeeCord and the latest version of Jedis. Given the limited flow of content on my blog, I'll post what I did.

The crucial hint was this mailing list post. Skipping the fluff about OSGi, the issue essentially boils down to not using the correct class loader.

It is an easy fix from there: set the correct class loader while creating the pool then reset it once you're done. See the commit I made to RedisBungee.