try {
bookmarks.addBookmark(new Bookmark(request.getParam("newbookmark"), request.getParam("name")));
</BUG>
} catch (MalformedURLException mue) {
<BUG>this.sendErrorPage(ctx, 200, "Invalid freenet key", "Could not add the given item as a bookmark since it was not possible to interpret it as a freenet key. Please <a href=\"/\">Try Again</a>");
return;</BUG>
}
try {
this.handleGet(new URI("/welcome/?managebookmarks"), ctx);
} catch (URISyntaxException ex) {

try {
bookmarks.addBookmark(new Bookmark(request.getParam("key"), request.getParam("name")));
} catch (MalformedURLException mue) {
this.sendBookmarkEditPage(ctx, MODE_ADD, null, request.getParam("key"), request.getParam("name"), "Given key does not appear to be a valid Freenet key.");
return;
}
try {
this.handleGet(new URI("/welcome/?managebookmarks"), ctx);
} catch (URISyntaxException ex) {
