setBaseURL(new File(".").toURL().toExternalForm());
setBaseURL(new File(".").toURI().toURL().toExternalForm());
    public NaiveUserAgent() {        try {            setBaseURL(new File(".").toURL().toExternalForm());        } catch (MalformedURLException e) {            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.        }    }