TISTUD-4335: correct the isJava7 expression.