docs: public <P extends Stanza> P pollResultOrThrow() throws XMPPErrorException {
          P result = pollResult();
          if (result != null) {
              XMPPErrorException.ifHasErrorThenThrow(result);
          }
          return result;
      }