Program: 28406
Project: 28406
Buggy source:
private Response executeCommand(CommandName commandName,Payload.Inbound inbound,ParameterMap params,boolean supportsMultiparResult,String xIndentHeader,String modelETag,Cookie jSessionId) throws WebApplicationException {
  if (RestLogging.restLogger.isLoggable(Level.FINEST)) {
    RestLogging.restLogger.log(Level.FINEST,"String_Node_Str",commandName);
  }
  CommandModel model=getCommandModel(commandName);
  checkCommandModelETag(model,modelETag);
  ActionReporter ar=new PropsFileActionReporter();
  final RestPayloadImpl.Outbound outbound=new RestPayloadImpl.Outbound(false);
  final CommandRunner.CommandInvocation commandInvocation=getCommandRunner().getCommandInvocation(commandName.getScope(),commandName.getName(),ar,getSubject(),params.containsKey("String_Node_Str"));
  if (inbound != null) {
    commandInvocation.inbound(inbound);
  }
  commandInvocation.outbound(outbound).parameters(params).execute();
  ar=(ActionReporter)commandInvocation.report();
  fixActionReporterSpecialCases(ar);
  ActionReport.ExitCode exitCode=ar.getActionExitCode();
  int status=HttpURLConnection.HTTP_OK;
  if (exitCode == ActionReport.ExitCode.FAILURE) {
    status=HttpURLConnection.HTTP_INTERNAL_ERROR;
  }
  ResponseBuilder rb=Response.status(status);
  if (xIndentHeader != null) {
    rb.header("String_Node_Str",xIndentHeader);
  }
  if (supportsMultiparResult && outbound.size() > 0) {
    ParamsWithPayload pwp=new ParamsWithPayload(outbound,ar);
    rb.entity(pwp);
  }
 else {
    rb.type(MediaType.APPLICATION_JSON_TYPE);
    rb.entity(ar);
  }
  if (isSingleInstanceCommand(model)) {
    rb.cookie(getJSessionCookie(jSessionId));
  }
  return rb.build();
}

Fixed version (ground truth):
private Response executeCommand(CommandName commandName,Payload.Inbound inbound,ParameterMap params,boolean supportsMultiparResult,String xIndentHeader,String modelETag,Cookie jSessionId) throws WebApplicationException {
  if (RestLogging.restLogger.isLoggable(Level.FINEST)) {
    RestLogging.restLogger.log(Level.FINEST,"String_Node_Str",commandName);
  }
  CommandModel model=getCommandModel(commandName);
  checkCommandModelETag(model,modelETag);
  boolean notifyOption=false;
  if (params != null) {
    notifyOption=params.containsKey("String_Node_Str");
  }
  ActionReporter ar=new PropsFileActionReporter();
  final RestPayloadImpl.Outbound outbound=new RestPayloadImpl.Outbound(false);
  final CommandRunner.CommandInvocation commandInvocation=getCommandRunner().getCommandInvocation(commandName.getScope(),commandName.getName(),ar,getSubject(),notifyOption);
  if (inbound != null) {
    commandInvocation.inbound(inbound);
  }
  commandInvocation.outbound(outbound).parameters(params).execute();
  ar=(ActionReporter)commandInvocation.report();
  fixActionReporterSpecialCases(ar);
  ActionReport.ExitCode exitCode=ar.getActionExitCode();
  int status=HttpURLConnection.HTTP_OK;
  if (exitCode == ActionReport.ExitCode.FAILURE) {
    status=HttpURLConnection.HTTP_INTERNAL_ERROR;
  }
  ResponseBuilder rb=Response.status(status);
  if (xIndentHeader != null) {
    rb.header("String_Node_Str",xIndentHeader);
  }
  if (supportsMultiparResult && outbound.size() > 0) {
    ParamsWithPayload pwp=new ParamsWithPayload(outbound,ar);
    rb.entity(pwp);
  }
 else {
    rb.type(MediaType.APPLICATION_JSON_TYPE);
    rb.entity(ar);
  }
  if (isSingleInstanceCommand(model)) {
    rb.cookie(getJSessionCookie(jSessionId));
  }
  return rb.build();
}