LPS-45495 Using a Java 7 API is not allowed