It would be easier with Java 7 ;-)