catch ( Exception e )
{
throw new MojoExecutionException( "Fatal error compiling", e );
}
boolean compilationError = false;
<BUG>for ( Iterator i = messages.iterator(); i.hasNext(); )
{
CompilerError message = (CompilerError) i.next();
if ( message.isError() )</BUG>
{

catch ( Exception e )
{
throw new MojoExecutionException( "Fatal error compiling", e );
}
boolean compilationError = false;
if ( messages != null )
{
for ( CompilerError message : messages )
{
if ( message.isError() )
{
