A painful fallback to JDK 7