Apply patch from
  https://github.com/jbraeuer/puppetlabs-java_ks/commit/5f22c040a59c689dd22d9e3df13221232f7a7131
for Java 7 compatbility.