[LOGMGR-106] Add hack to set level cache for OpenJDK and Java 7+.