Why is this line calling `features.get(CLEAR_SESSION_CACHE)` again, and not using `cache.booleanValue()` like all of the code above it does? It looks like it should instead read

    if (cache != null) {
        clearSessionCache = cache.booleanValue()
    }