System.err.println("Can't figure out how to load stylesheet '" + href + "'.");
System.err.println("Can't figure out how to load stylesheet '" + href + "' with base URL "+_context.getBaseURL());
    public void parseStylesheet( String href )    throws IOException {        try {                // HACK: need clean way to check if this is local reference...local references will need to be resolved to server reference, won't they?                Reader reader = null;                try {                    URL url = null;                    if ( !href.startsWith("http://") && !href.startsWith("file://"))                        url = new URL(_context.getBaseURL(),href);                    url = new URL(href);                    InputStream is = url.openStream();                    BufferedInputStream bis = new BufferedInputStream(is);                    reader = new InputStreamReader(bis);                } catch ( java.net.MalformedURLException ex ) {                    System.err.println("Stylesheet link " + href + " doesn't appear to be a url.");                   }                                if ( reader == null ) {                    File f = new File(href);                    if ( f.exists()) {                        reader = new BufferedReader(new FileReader(f));                        System.out.println("Loading CSS " + href + " as a file.");                    } else {                        System.err.println("Can't figure out how to load stylesheet '" + href + "'.");                       }                }                 if ( reader != null ) {                    parse(reader, XRStyleSheet.AUTHOR);                    reader.close();                }        } catch ( Exception ex ) {            ex.printStackTrace();           }    }