private static URL openURL(String fname) throws MalformedURLException {
private URL openURL(String fname) throws MalformedURLException {
    private static URL openURL(String fname) throws MalformedURLException {        try {            return new URL(fname);        } catch (MalformedURLException ex) {            return new File(fname).toURL();        }    }