Fixing JDK6 compilation.