title: JGroups function to list available Groups or Clusters
body: <p>I have a series of clients which communicate with each other using JGroups library, they basically create a communication channel attached to a cluster name: </p>
  
  <pre><code>communicationChannel = new JChannel(AutoDiscovery.class.getResource("/resource/udp.xml"));
  communicationChannel.connect("cluster1");
  </code></pre>
  
  <p>Now I would like them to first list available clusters to connect to and let the user decide which cluster connect to without hardwiring the name of the cluster in the code as above.
  Apparently the API has getName() which returns the logical name of the channel if set but there's no method to retrieve set up clusters.</p>
  
  <p>I though using the org.jgroups.Message.getHeaders()  and reading the header would yield the active clusters but nothing.
  Any help please?</p>