adapted for jdk 1.6 , a new requirement.
Authored by: andremachado 2007-08-07
Parent: [r571]
Child: [r573]