private void openUriInBrowser(URI uri) {
        if (uri != null) {
            if (java.awt.Desktop.isDesktopSupported()) {
                try {
                    java.awt.Desktop.getDesktop().browse(uri);
                } catch (IOException ex) {
                    System.err.println(ex.getMessage());
                }
            }
        }
    }