/** * Default constructor. Registers the data provider with the private data manager in the * storage:bookmarks namespace. * * @param connection the connection for persisting and retrieving bookmarks. */ private BookmarkManager(XMPPConnection connection) throws XMPPException, SmackException { privateDataManager = PrivateDataManager.getInstanceFor(connection); bookmarkManagerMap.put(connection, this); }