_logger.log(Level.FINE, "Deleting CLB Config Name as part of deletion of CLB");
try {
ConfigContext ctx = AdminService.getAdminService().getAdminContext()
.getAdminConfigContext();
Domain domain = (Domain) ctx.getRootConfigBean();
Configs configs = domain.getConfigs();
AvailabilityService avSvc = null;
String targetName = null;
if (configs != null) {
boolean found = false;
Config[] configArray = configs.getConfig();
for (int i = 0; i < configArray.length; i++) {
avSvc = configArray[i].getAvailabilityService();
if (avSvc != null) {
ConvergedLoadBalancer clb = configArray[i].getAvailabilityService()
.getConvergedLoadBalancer();
if (clb != null && clb.getName().equals(clbName)) {
// Issue 803, check if Cluster is running before deleting CLB
String configName = configArray[i].getName();
Cluster[] cluster = domain.getClusters().getCluster();
Server[] server = domain.getServers().getServer();
boolean isClusterConfig = false;
// In the case if clb is created in cluster config
for (int cnt=0; cnt < cluster.length; cnt++) {
String configRef = cluster[cnt].getConfigRef();
if (configRef.equals(configName)) {