docs: public boolean hasExtension(String elementName, String namespace) {
          if (elementName == null) {
              return hasExtension(namespace);
          }
          String key = XmppStringUtils.generateKey(elementName, namespace);
          synchronized (packetExtensions) {
              return packetExtensions.containsKey(key);
          }
      }