try {
int bookmarkId = Integer.parseInt(rawBookmarkId);
for (Bookmark bookmark : _bookmarks) {
if (bookmark.getId() == bookmarkId) {
String stopId = bookmark.getStopId();
ViewController next = Actions.ensureStopIsSelected(getListViewController(), stopId);
next.handleContext(path, context);
return;
}
}
} catch (NumberFormatException ex) {
System.err.println("invalid bookmark id=" + rawBookmarkId);