add support for jdk 7