Working on a problem with Java < 6.