encapsulate jvm version quirks