ServerContext sc = com.sun.enterprise.server.ondemand.
OnDemandServer.getServerContext();
ConfigContext instanceConfigContext = sc.getConfigContext();
Config instanceConfig = ServerBeansFactory.
getConfigBean(instanceConfigContext);
AvailabilityService haService = instanceConfig.
getAvailabilityService();
ConvergedLoadBalancer clb = haService.getConvergedLoadBalancer();
String clbConfigName = clb.getConvergedLbConfigName();
clbConfig = ((Domain) ctx.getRootConfigBean()).
getConvergedLbConfigs().getConvergedLbConfigByName(
clbConfigName);
} catch (Exception ex) {