/**
   * Save {@link Bookmark} instance into its {@link SharedPreferences}.
   *
   * @return true on success, false on failure.
   */
  private boolean writeBookmark(final SharedPreferences prefs, final Bookmark bookmark) {
    final SharedPreferences.Editor editor = prefs.edit();

    AbstractUserProfileStorage.writeUserProfile(editor, bookmark);
    BookmarkStorage.writeBookmark(editor, bookmark);

    return check(editor.commit(), R.string.io_error);
  }