added hacking logs for both JDK 6 and 7