try {
cache.put(cacheKey, json);
} catch (IOException e) {
logger.debug(e.toString());
}
<BUG>} else {
if (tryCache) throw new HttpResponseStatusException(response);
try {</BUG>
json = cache.get(cacheKey);
} catch (IOException e) {

try {
json = cache.get(cacheKey);
} catch (IOException e) {
