JBIDE-18412 and JBIDE-18411

Parsing puked on http://sourceforge.net/projects/jboss/files/JBoss/JBoss-6.0.0.Final/jboss-as-distribution-6.0.0.Final.zip/download

Not sure this fix would make it any better. Is there any unit test to check that?