return gms;
}
private Properties getGMSConfigProps() throws GMSEventListenerException {
Properties props = new Properties();
Config config;
Cluster cluster;
ConfigContext configContext;
try {
configContext = AdminService.getAdminService().getAdminContext()
.getAdminConfigContext();
cluster = ClusterHelper.getClusterByName(configContext, clusterName);
String configRef = cluster.getConfigRef();
config = ConfigAPIHelper.getConfigByName(configContext, configRef);
com.sun.enterprise.config.serverbeans.GroupManagementService gmsConfig =
config.getGroupManagementService();
if(!gmsConfig.isEnabled()){
String message = _logger.getResourceBundle().
getString("clb.gms_not_enabled") + clusterName;
throw new GMSEventListenerException(message);