docs: public boolean isAvailable() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          Presence directedPresence = new Presence(Presence.Type.available);
          directedPresence.setTo(workgroupJID);
          StanzaFilter typeFilter = new StanzaTypeFilter(Presence.class);
          StanzaFilter fromFilter = FromMatchesFilter.create(workgroupJID);
          StanzaCollector collector = connection.createStanzaCollectorAndSend(new AndFilter(fromFilter,
                  typeFilter), directedPresence);
  
          Presence response = collector.nextResultOrThrow();
          return Presence.Type.available == response.getType();
      }