/**
Get the server names in a cluster.
*/
private Set<String> getInstanceNames( final String clusterName ) throws MBeanException {
final ObjectName clusterObjectName = getClusterObjectName(clusterName);
final ClusterConfigMBean clusterConfig = ClusterConfigMBean.class.cast(
MBeanServerInvocationHandler.newProxyInstance( getMBeanServer(), clusterObjectName, ClusterConfigMBean.class, false ) );
try{
return GSetUtil.newSet( clusterConfig.listServerInstancesAsString(false) );
} catch (final InstanceException e ) {
throw new MBeanException(e);
}
}