private static void open(URI uri) {
if (Desktop.isDesktopSupported()) {
try {
Desktop.getDesktop().browse(uri);
} catch (IOException ioException) {
throw new IORuntimeException(
"Unable to open the uri " + uri, ioException);
}
} else {
log.warn("The desktop is not supported so the uri '" + uri +
"' will not be browsed.");