public GenericSettings getGenericSettings ( XMPPConnection con , String query ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { GenericSettings setting = new GenericSettings ( ) ; setting . setType ( IQ . Type . get ) ; setting . setTo ( workgroupJID ) ; GenericSettings response = connection . createStanzaCollectorAndSend ( setting ) . nextResultOrThrow ( ) ; return response ; }
Returns the generic metadata of the workgroup the agent belongs to .