*/ c.css.parse( new InputStreamReader( stream ), XRStyleSheet.USER_AGENT );
    public static void runLoopTest( Context c, Graphics g, Element html )        throws Exception {        Element body = x.child( html, "body" );        Point origin = new Point( 0, 0 );        Point last = new Point( 0, 0 );        Object marker = new DefaultCSSMarker();        //InputStream stream = marker.getClass().getResourceAsStream( "default.css" );        String defaultStyleSheetLocation = Configuration.valueFor( "xr.css.user-agent-default-css" );        InputStream stream = GeneralUtil.openStreamFromClasspath(defaultStyleSheetLocation);        /*        if ( marker.getClass().getResourceAsStream( defaultStyleSheetLocation ) != null ) {            URL stream = marker.getClass().getResource( defaultStyleSheetLocation );            String str = u.inputstream_to_string( stream.openStream() );            c.css.parse( new StringReader( str ), XRStyleSheet.USER_AGENT );        }        */        c.css.parse( new InputStreamReader( stream ), XRStyleSheet.USER_AGENT );        c.css.parseInlineStyles( html );        c.graphics = g;        c.setExtents( new Rectangle( 0, 0, 500, 500 ) );        c.cursor = last;        c.setMaxWidth( 0 );        // create layout        BodyLayout layout = new BodyLayout();        int total = 0;        int loop = 30;        for ( int i = 0; i < loop; i++ ) {            u.sleep( 100 );            long start_time = new java.util.Date().getTime();            // execute layout            //u.p("body = " + body);            Box body_box = layout.layout( c, body );            long end_time = new java.util.Date().getTime();            u.p( i + ") ending count = " + ( end_time - start_time ) + " msec" );            if ( i > 0 ) {                total += ( end_time - start_time );            }        }        u.p( "avg = " + ( total / loop ) );    }