Program: 116650
Project: 116650
Buggy source:
private static String subscribeToLb(String cartridgeType,String loadBalancedCartridgeType,String lbAlias,String defaultAutoscalingPolicy,String deploymentPolicy,ConfigurationContext configurationContext,String userName,String tenantDomain,Property[] props) throws ADCException {
  CartridgeSubscription cartridgeSubscription;
  try {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + cartridgeType + "String_Node_Str"+ lbAlias);
    }
    SubscriptionData subscriptionData=new SubscriptionData();
    subscriptionData.setCartridgeType(cartridgeType);
    subscriptionData.setLbAlias(lbAlias.trim());
    subscriptionData.setAutoscalingPolicyName(defaultAutoscalingPolicy);
    subscriptionData.setDeploymentPolicyName(deploymentPolicy);
    subscriptionData.setTenantDomain(tenantDomain);
    subscriptionData.setTenantId(ApplicationManagementUtil.getTenantId(configurationContext));
    subscriptionData.setTenantAdminUsername(userName);
    subscriptionData.setRepositoryType("String_Node_Str");
    subscriptionData.setPrivateRepository(false);
    cartridgeSubscription=cartridgeSubsciptionManager.subscribeToCartridgeWithProperties(subscriptionData);
    cartridgeSubscription.getPayloadData().add("String_Node_Str",loadBalancedCartridgeType);
    Properties lbProperties=new Properties();
    lbProperties.setProperties(props);
    cartridgeSubsciptionManager.registerCartridgeSubscription(cartridgeSubscription,lbProperties);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + cartridgeType + "String_Node_Str"+ lbAlias);
    }
  }
 catch (  Exception e) {
    String msg="String_Node_Str" + cartridgeType;
    log.error(msg,e);
    throw new ADCException(msg,e);
  }
  return cartridgeSubscription.getClusterDomain();
}

Fixed version (ground truth):
private static String subscribeToLb(String cartridgeType,String loadBalancedCartridgeType,String lbAlias,String defaultAutoscalingPolicy,String deploymentPolicy,ConfigurationContext configurationContext,String userName,String tenantDomain,Property[] props) throws ADCException {
  CartridgeSubscription cartridgeSubscription;
  try {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + cartridgeType + "String_Node_Str"+ lbAlias);
    }
    SubscriptionData subscriptionData=new SubscriptionData();
    subscriptionData.setCartridgeType(cartridgeType);
    subscriptionData.setCartridgeAlias(lbAlias.trim());
    subscriptionData.setAutoscalingPolicyName(defaultAutoscalingPolicy);
    subscriptionData.setDeploymentPolicyName(deploymentPolicy);
    subscriptionData.setTenantDomain(tenantDomain);
    subscriptionData.setTenantId(ApplicationManagementUtil.getTenantId(configurationContext));
    subscriptionData.setTenantAdminUsername(userName);
    subscriptionData.setRepositoryType("String_Node_Str");
    subscriptionData.setPrivateRepository(false);
    cartridgeSubscription=cartridgeSubsciptionManager.subscribeToCartridgeWithProperties(subscriptionData);
    cartridgeSubscription.getPayloadData().add("String_Node_Str",loadBalancedCartridgeType);
    Properties lbProperties=new Properties();
    lbProperties.setProperties(props);
    cartridgeSubsciptionManager.registerCartridgeSubscription(cartridgeSubscription,lbProperties);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + cartridgeType + "String_Node_Str"+ lbAlias);
    }
  }
 catch (  Exception e) {
    String msg="String_Node_Str" + cartridgeType;
    log.error(msg,e);
    throw new ADCException(msg,e);
  }
  return cartridgeSubscription.getClusterDomain();
}