code: public void removeBookmarkedConference(EntityBareJid jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          retrieveBookmarks();
          Iterator<BookmarkedConference> it = bookmarks.getBookmarkedConferences().iterator();
          while (it.hasNext()) {
              BookmarkedConference conference = it.next();
              if (conference.getJid().equals(jid)) {
                  if (conference.isShared()) {
                      throw new IllegalArgumentException("Conference is shared and can't be removed");
                  }
                  it.remove();
                  privateDataManager.setPrivateData(bookmarks);
                  return;
              }
          }
      }
docs: Removes a conference from the bookmarks.
  
  @param jid the jid of the conference to be removed.
  @throws XMPPErrorException thrown when there is a problem with the connection attempting to
  retrieve the bookmarks or persist the bookmarks.
  @throws NoResponseException if there was no response from the server.
  @throws NotConnectedException
  @throws InterruptedException
  @throws IllegalArgumentException thrown when the conference being removed is a shared
  conference