Fixed some things that failed in the Test of HeadlessJavaGeneratorTest
Authored by: hotzst 2010-02-09
Parent: [r3082]
Child: [r3084]