Program: 28268
Project: 28268
Buggy source:
@Override public void execute(AdminCommandContext context){
  report=context.getActionReport();
  report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
  boolean isCluster=tgt.isCluster(target);
  logger.fine("String_Node_Str" + target);
  if (config != null && lbname != null) {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
  if (config == null && lbname == null) {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
  LbConfigs lbconfigs=domain.getExtensionByType(LbConfigs.class);
  if (lbconfigs == null) {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
  if (config != null) {
    if (lbconfigs.getLbConfig(config) == null) {
      String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",config);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      report.setMessage(msg);
      return;
    }
  }
 else   if (lbname != null) {
    LoadBalancers lbs=domain.getExtensionByType(LoadBalancers.class);
    if (lbs == null) {
      String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      report.setMessage(msg);
      return;
    }
    LoadBalancer lb=lbs.getLoadBalancer(lbname);
    if (lb == null) {
      String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",lbname);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      report.setMessage(msg);
      return;
    }
    config=lb.getLbConfigName();
  }
  if (isCluster) {
    deleteClusterFromLBConfig(lbconfigs,config,target);
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",target,config);
    logger.info(msg);
  }
 else   if (domain.isServer(target)) {
    deleteServerFromLBConfig(lbconfigs,config,target);
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",target,config);
    logger.info(msg);
  }
 else {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",target);
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
}

Fixed version (ground truth):
@Override public void execute(AdminCommandContext context){
  report=context.getActionReport();
  report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
  boolean isCluster=tgt.isCluster(target);
  if (logger.isLoggable(Level.FINE)) {
    logger.fine("String_Node_Str" + target);
  }
  if (config != null && lbname != null) {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
  if (config == null && lbname == null) {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
  LbConfigs lbconfigs=domain.getExtensionByType(LbConfigs.class);
  if (lbconfigs == null) {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
  if (config != null) {
    if (lbconfigs.getLbConfig(config) == null) {
      String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",config);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      report.setMessage(msg);
      return;
    }
  }
 else   if (lbname != null) {
    LoadBalancers lbs=domain.getExtensionByType(LoadBalancers.class);
    if (lbs == null) {
      String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str");
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      report.setMessage(msg);
      return;
    }
    LoadBalancer lb=lbs.getLoadBalancer(lbname);
    if (lb == null) {
      String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",lbname);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      report.setMessage(msg);
      return;
    }
    config=lb.getLbConfigName();
  }
  if (isCluster) {
    deleteClusterFromLBConfig(lbconfigs,config,target);
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",target,config);
    logger.info(msg);
  }
 else   if (domain.isServer(target)) {
    deleteServerFromLBConfig(lbconfigs,config,target);
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",target,config);
    logger.info(msg);
  }
 else {
    String msg=localStrings.getLocalString("String_Node_Str","String_Node_Str",target);
    report.setActionExitCode(ActionReport.ExitCode.FAILURE);
    report.setMessage(msg);
    return;
  }
}