The Great JCache Pull request :)

This code is very complicated. I'm sure that checkstyle is not happy with it.