Add a pre jdk 8 solution.