JELLY-288 Remove use of JDK 1.5 methodss - note this move Jelly back to a minimum of JDK 1.4, if compatibility needs to be restored back to JDK 1.3 this will need to be changed again.