code: public WorkgroupProperties getWorkgroupProperties() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException  {
          WorkgroupProperties request = new WorkgroupProperties();
          request.setType(IQ.Type.get);
          request.setTo(workgroupJID);
  
          return connection.createStanzaCollectorAndSend(request).nextResultOrThrow();
      }
docs: Asks the workgroup for it's Properties.
  
  @return the WorkgroupProperties for the specified workgroup.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException