public void openRbnbUri(String uri) { Pattern uriPat = Pattern.compile("^rbnb:(\\w+):(.*)$"); Matcher m = uriPat.matcher(uri); if (m.matches()) { String objType = m.group(1); String objId = m.group(2); if (objType.equalsIgnoreCase("focus")) { // Do nothing, arg handler will bring us to front anyway return; } if (objType.equalsIgnoreCase("playlist")) { long pId = Long.parseLong(objId, 16); leftSidebar.showPlaylist(pId); return; } } log.error("Received invalid rbnb uri: " + uri); }