Program: 116615
Project: 116615
Buggy source:
private void deployLBCluster(String loadBalancedService,LBDataContext lbDataCtxt,String tenantRange) throws ADCException, UnregisteredCartridgeException {
  if (lbDataCtxt.getLbCategory() == null || lbDataCtxt.getLbCategory().equals(Constants.NO_LOAD_BALANCER)) {
    return;
  }
  LoadBalancerCategory loadBalancerCategory=null;
  if (lbDataCtxt.getLbCategory().equals(Constants.EXISTING_LOAD_BALANCERS)) {
    loadBalancerCategory=new ExistingLoadBalancerCategory();
  }
 else   if (lbDataCtxt.getLbCategory().equals(Constants.DEFAULT_LOAD_BALANCER)) {
    loadBalancerCategory=new DefaultLoadBalancerCategory();
  }
 else   if (lbDataCtxt.getLbCategory().equals(Constants.SERVICE_AWARE_LOAD_BALANCER)) {
    loadBalancerCategory=new ServiceLevelLoadBalancerCategory();
  }
  if (loadBalancerCategory == null) {
    throw new ADCException("String_Node_Str" + lbDataCtxt.getLbCategory() + "String_Node_Str");
  }
  loadBalancerCategory.setLoadBalancedServiceType(loadBalancedService);
  Service lbService=new MultiTenantLBService(lbDataCtxt.getLbCartridgeInfo().getType(),lbDataCtxt.getAutoscalePolicy(),lbDataCtxt.getDeploymentPolicy(),-1234,lbDataCtxt.getLbCartridgeInfo(),tenantRange,loadBalancerCategory);
  Properties lbProperties=null;
  if (lbDataCtxt.getLbProperperties() != null && !lbDataCtxt.getLbProperperties().isEmpty()) {
    lbProperties=new Properties();
    lbProperties.setProperties(lbDataCtxt.getLbProperperties().toArray(new Property[0]));
  }
  lbService.deploy(lbProperties);
  persist(lbService);
}

Fixed version (ground truth):
private void deployLBCluster(String loadBalancedService,LBDataContext lbDataCtxt,String tenantRange) throws ADCException, UnregisteredCartridgeException {
  if (lbDataCtxt.getLbCategory() == null || lbDataCtxt.getLbCategory().equals(Constants.NO_LOAD_BALANCER)) {
    return;
  }
  LoadBalancerCategory loadBalancerCategory=null;
  if (lbDataCtxt.getLbCategory().equals(Constants.EXISTING_LOAD_BALANCERS)) {
    loadBalancerCategory=new ExistingLoadBalancerCategory();
  }
 else   if (lbDataCtxt.getLbCategory().equals(Constants.DEFAULT_LOAD_BALANCER)) {
    loadBalancerCategory=new DefaultLoadBalancerCategory();
  }
 else   if (lbDataCtxt.getLbCategory().equals(Constants.SERVICE_AWARE_LOAD_BALANCER)) {
    loadBalancerCategory=new ServiceLevelLoadBalancerCategory();
  }
  if (loadBalancerCategory == null) {
    throw new ADCException("String_Node_Str" + lbDataCtxt.getLbCategory() + "String_Node_Str");
  }
  loadBalancerCategory.setLoadBalancedServiceType(loadBalancedService);
  loadBalancerCategory.setLoadBalancedServiceMultiTenant(true);
  log.info("String_Node_Str" + lbDataCtxt.getDeploymentPolicy());
  loadBalancerCategory.setDeploymentPolicyName(lbDataCtxt.getDeploymentPolicy());
  Service lbService=new MultiTenantLBService(lbDataCtxt.getLbCartridgeInfo().getType(),lbDataCtxt.getAutoscalePolicy(),lbDataCtxt.getDeploymentPolicy(),-1234,lbDataCtxt.getLbCartridgeInfo(),tenantRange,loadBalancerCategory);
  Properties lbProperties=null;
  if (lbDataCtxt.getLbProperperties() != null && !lbDataCtxt.getLbProperperties().isEmpty()) {
    lbProperties=new Properties();
    lbProperties.setProperties(lbDataCtxt.getLbProperperties().toArray(new Property[0]));
  }
  lbService.deploy(lbProperties);
  persist(lbService);
}