docs: public boolean canCreateNodesAndPublishItems() throws NoResponseException, NotConnectedException, InterruptedException, XMPPErrorException {
          LeafNode leafNode = null;
          try {
              leafNode = createNode();
          }
          catch (XMPPErrorException e) {
              if (e.getStanzaError().getCondition() == StanzaError.Condition.forbidden) {
                  return false;
              }
              throw e;
          } finally {
              if (leafNode != null) {
                  deleteNode(leafNode.getId());
              }
          }
          return true;
      }