code: public PrivacyList getPrivacyList(String listName) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException  {
          listName = StringUtils.requireNotNullNorEmpty(listName, "List name must not be null");
          return new PrivacyList(false, false, listName, getPrivacyListItems(listName));
      }
docs: Answer the privacy list items under listName with the allowed and blocked permissions.
  
  @param listName the name of the list to get the allowed and blocked permissions.
  @return a privacy list under the list listName.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException