code: public MamPrefsResult retrieveArchivingPreferences() throws NoResponseException, XMPPErrorException,
              NotConnectedException, InterruptedException, NotLoggedInException {
          MamPrefsIQ mamPrefIQ = new MamPrefsIQ();
          return queryMamPrefs(mamPrefIQ);
      }
docs: Get the preferences stored in the server.
  
  @return the MAM preferences result
  @throws NoResponseException
  @throws XMPPErrorException
  @throws NotConnectedException
  @throws InterruptedException
  @throws NotLoggedInException