Fix for using agent with JDK6 runtime