URL url = config.toURL();
URI uri = config.toURI(); URL url = uri.toURL();
    private TransitDirective loadTransitDirective( CommandLine line )    {        if( line.hasOption( PROFILE_URI_OPTION ) )        {            URI uri = (URI) line.getValue( PROFILE_URI_OPTION, null );            try            {                URL url = buildURL( uri );                TransitBuilder builder = new TransitBuilder( m_logger );                return builder.load( url );            }            catch( FileNotFoundException e )            {                final String error =                   "Resource not found: "                + uri;                getLogger().warn( error );                return null;            }            catch( Exception e )            {                final String error =                   "An error occured while attempting to load the transit profile: "                  + uri;                getLogger().error( error, e  );                return null;            }        }        else        {            File prefs = Transit.DPML_PREFS;            File config = new File( prefs, "dpml/transit/xmls/standard.xml" );            if( config.exists() )            {                try                {                    URL url = config.toURL();                    TransitBuilder builder = new TransitBuilder( m_logger );                    return builder.load( url );                }                catch( Exception e )                {                    final String error =                       "An error occured while attempting to load the transit profile: "                    + config;                    getLogger().error( error, e  );                    return null;                }            }            else            {                //                // load default profile                //                                return TransitDirective.CLASSIC_PROFILE;            }        }    }