final String error = "Detected condition where Transit has already been initialized."; throw new BuildException( error, e );
    public static void initialize( Task task ) throws BuildException    {        synchronized( TransitTask.class )        {            Project project = task.getProject();            if( null == m_MODEL )            {                try                {                    Adapter logger = new AntAdapter( task );                    m_MODEL = new DefaultTransitModel( logger );                    Transit transit = Transit.getInstance( m_MODEL );                    setupMonitors( transit, logger );                }                catch( TransitAlreadyInitializedException e )                {                    final String error =                      "Detected condition where Transit has already been initialized.";                    throw new BuildException( error, e );                }                catch( Throwable e )                {                    final String error =                      "Internal error while initializing Transit";                    throw new BuildException( error, e );                }            }            checkProperties( project );        }    }