Program: 28749
Project: 28749
Buggy source:
@Override public void execute(AdminCommandContext context){
  ActionReport report=context.getActionReport();
  if (instance != null) {
    Server svr=domain.getServerNamed(instance);
    if (svr == null) {
      report.setMessage("String_Node_Str" + instance);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      return;
    }
    String host=svr.getAdminHost();
    int port=svr.getAdminPort();
    try {
      ServerRemoteAdminCommand remote=new ServerRemoteAdminCommand(locator,"String_Node_Str",host,port,false,"String_Node_Str","String_Node_Str",log);
      ParameterMap params=new ParameterMap();
      if (commandLine == null) {
        params.set("String_Node_Str".toLowerCase(),"String_Node_Str");
      }
 else       if (commandLine instanceof String) {
        params.set("String_Node_Str".toLowerCase(),(String)commandLine);
      }
 else       if (commandLine instanceof List) {
        params.set("String_Node_Str".toLowerCase(),(List<String>)commandLine);
      }
      if (sessionOp != null) {
        params.set("String_Node_Str",sessionOp);
      }
      if (sessionId != null) {
        params.set("String_Node_Str",sessionId);
      }
      report.setMessage(remote.executeCommand(params));
      report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
      return;
    }
 catch (    CommandException x) {
      report.setMessage("String_Node_Str" + x.getMessage());
      report.setFailureCause(x);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      return;
    }
  }
  String cmdName="String_Node_Str";
  String cmd="String_Node_Str";
  if (commandLine == null) {
    cmd="String_Node_Str";
    cmdName=cmd;
  }
 else   if (commandLine instanceof String) {
    cmd=(String)commandLine;
    cmdName=cmd;
  }
 else   if (commandLine instanceof List) {
    for (    Object arg : (List)commandLine) {
      if (cmd.length() == 0) {
        cmd=(String)arg;
        cmdName=cmd;
      }
 else {
        cmd+="String_Node_Str" + (String)arg;
      }
    }
  }
 else   if (commandLine instanceof String[]) {
    for (    Object arg : (String[])commandLine) {
      if (cmd.length() == 0) {
        cmd=(String)arg;
        cmdName=cmd;
      }
 else {
        cmd+="String_Node_Str" + (String)arg;
      }
    }
  }
 else {
    report.setMessage("String_Node_Str" + commandLine.getClass().getName());
    report.setActionExitCode(ActionReport.ExitCode.WARNING);
    return;
  }
  ByteArrayOutputStream bOut=new ByteArrayOutputStream(512);
  PrintStream out=new PrintStream(bOut);
  ByteArrayOutputStream bErr=new ByteArrayOutputStream(512);
  PrintStream err=new PrintStream(bErr);
  try {
    Object shell=null;
    ServiceReference sref=ctx.getServiceReference("String_Node_Str");
    if (sref != null) {
      shell=ctx.getService(sref);
    }
    if (shell == null) {
      sref=ctx.getServiceReference("String_Node_Str");
      if (sref != null) {
        shell=ctx.getService(sref);
      }
      if (shell == null) {
        report.setMessage("String_Node_Str");
        report.setActionExitCode(ActionReport.ExitCode.WARNING);
        return;
      }
 else       if ("String_Node_Str".equals(cmdName)) {
        out.println("String_Node_Str");
      }
 else {
        ShellService s=(ShellService)shell;
        s.executeCommand(cmd,out,err);
      }
    }
 else {
      InputStream in=new InputStream(){
        @Override public int read() throws IOException {
          return -1;
        }
        @Override public int available() throws IOException {
          return 0;
        }
        @Override public int read(        byte[] b) throws IOException {
          return -1;
        }
        @Override public int read(        byte[] b,        int off,        int len) throws IOException {
          return -1;
        }
      }
;
      CommandProcessor cp=(CommandProcessor)shell;
      if (sessionOp == null) {
        if ("String_Node_Str".equals(cmdName)) {
          out.println("String_Node_Str");
        }
 else {
          CommandSession session=cp.createSession(in,out,err);
          session.execute(cmd);
          session.close();
        }
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        CommandSession session=cp.createSession(null,null,null);
        RemoteCommandSession remote=new RemoteCommandSession(session);
        log.log(Level.FINE,"String_Node_Str",remote.getId());
        sessions.put(remote.getId(),remote);
        out.println(remote.getId());
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        for (        String id : sessions.keySet()) {
          out.println(id);
        }
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        RemoteCommandSession remote=sessions.get(sessionId);
        CommandSession session=remote.attach(in,out,err);
        session.execute(cmd);
        remote.detach();
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        RemoteCommandSession remote=sessions.remove(sessionId);
        CommandSession session=remote.attach(in,out,err);
        session.close();
        log.log(Level.FINE,"String_Node_Str",remote.getId());
      }
    }
    out.flush();
    err.flush();
    String output=bOut.toString("String_Node_Str");
    String errors=bErr.toString("String_Node_Str");
    report.setMessage(output);
    if (errors.length() > 0) {
      report.setMessage(errors);
      report.setActionExitCode(ActionReport.ExitCode.WARNING);
    }
 else {
      report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
    }
  }
 catch (  Exception ex) {
    report.setMessage(ex.getMessage());
    report.setActionExitCode(ActionReport.ExitCode.WARNING);
  }
}

Fixed version (ground truth):
@Override public void execute(AdminCommandContext context){
  ActionReport report=context.getActionReport();
  if (instance != null) {
    Server svr=domain.getServerNamed(instance);
    if (svr == null) {
      report.setMessage("String_Node_Str" + instance);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      return;
    }
    String host=svr.getAdminHost();
    int port=svr.getAdminPort();
    try {
      ServerRemoteAdminCommand remote=new ServerRemoteAdminCommand(locator,"String_Node_Str",host,port,false,"String_Node_Str","String_Node_Str",log);
      ParameterMap params=new ParameterMap();
      if (commandLine == null) {
        params.set("String_Node_Str".toLowerCase(Locale.US),"String_Node_Str");
      }
 else       if (commandLine instanceof String) {
        params.set("String_Node_Str".toLowerCase(Locale.US),(String)commandLine);
      }
 else       if (commandLine instanceof List) {
        params.set("String_Node_Str".toLowerCase(Locale.US),(List<String>)commandLine);
      }
      if (sessionOp != null) {
        params.set("String_Node_Str",sessionOp);
      }
      if (sessionId != null) {
        params.set("String_Node_Str",sessionId);
      }
      report.setMessage(remote.executeCommand(params));
      report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
      return;
    }
 catch (    CommandException x) {
      report.setMessage("String_Node_Str" + x.getMessage());
      report.setFailureCause(x);
      report.setActionExitCode(ActionReport.ExitCode.FAILURE);
      return;
    }
  }
  String cmdName="String_Node_Str";
  String cmd="String_Node_Str";
  if (commandLine == null) {
    cmd="String_Node_Str";
    cmdName=cmd;
  }
 else   if (commandLine instanceof String) {
    cmd=(String)commandLine;
    cmdName=cmd;
  }
 else   if (commandLine instanceof List) {
    for (    Object arg : (List)commandLine) {
      if (cmd.length() == 0) {
        cmd=(String)arg;
        cmdName=cmd;
      }
 else {
        cmd+="String_Node_Str" + (String)arg;
      }
    }
  }
 else   if (commandLine instanceof String[]) {
    for (    Object arg : (String[])commandLine) {
      if (cmd.length() == 0) {
        cmd=(String)arg;
        cmdName=cmd;
      }
 else {
        cmd+="String_Node_Str" + (String)arg;
      }
    }
  }
 else {
    report.setMessage("String_Node_Str" + commandLine.getClass().getName());
    report.setActionExitCode(ActionReport.ExitCode.WARNING);
    return;
  }
  ByteArrayOutputStream bOut=new ByteArrayOutputStream(512);
  PrintStream out=new PrintStream(bOut);
  ByteArrayOutputStream bErr=new ByteArrayOutputStream(512);
  PrintStream err=new PrintStream(bErr);
  try {
    Object shell=null;
    ServiceReference sref=ctx.getServiceReference("String_Node_Str");
    if (sref != null) {
      shell=ctx.getService(sref);
    }
    if (shell == null) {
      sref=ctx.getServiceReference("String_Node_Str");
      if (sref != null) {
        shell=ctx.getService(sref);
      }
      if (shell == null) {
        report.setMessage("String_Node_Str");
        report.setActionExitCode(ActionReport.ExitCode.WARNING);
        return;
      }
 else       if ("String_Node_Str".equals(cmdName)) {
        out.println("String_Node_Str");
      }
 else {
        ShellService s=(ShellService)shell;
        s.executeCommand(cmd,out,err);
      }
    }
 else {
      InputStream in=new InputStream(){
        @Override public int read() throws IOException {
          return -1;
        }
        @Override public int available() throws IOException {
          return 0;
        }
        @Override public int read(        byte[] b) throws IOException {
          return -1;
        }
        @Override public int read(        byte[] b,        int off,        int len) throws IOException {
          return -1;
        }
      }
;
      CommandProcessor cp=(CommandProcessor)shell;
      if (sessionOp == null) {
        if ("String_Node_Str".equals(cmdName)) {
          out.println("String_Node_Str");
        }
 else {
          CommandSession session=cp.createSession(in,out,err);
          session.execute(cmd);
          session.close();
        }
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        CommandSession session=cp.createSession(null,null,null);
        RemoteCommandSession remote=new RemoteCommandSession(session);
        log.log(Level.FINE,"String_Node_Str",remote.getId());
        sessions.put(remote.getId(),remote);
        out.println(remote.getId());
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        for (        String id : sessions.keySet()) {
          out.println(id);
        }
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        RemoteCommandSession remote=sessions.get(sessionId);
        CommandSession session=remote.attach(in,out,err);
        session.execute(cmd);
        remote.detach();
      }
 else       if ("String_Node_Str".equals(sessionOp)) {
        RemoteCommandSession remote=sessions.remove(sessionId);
        CommandSession session=remote.attach(in,out,err);
        session.close();
        log.log(Level.FINE,"String_Node_Str",remote.getId());
      }
    }
    out.flush();
    err.flush();
    String output=bOut.toString("String_Node_Str");
    String errors=bErr.toString("String_Node_Str");
    report.setMessage(output);
    if (errors.length() > 0) {
      report.setMessage(errors);
      report.setActionExitCode(ActionReport.ExitCode.WARNING);
    }
 else {
      report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
    }
  }
 catch (  Exception ex) {
    report.setMessage(ex.getMessage());
    report.setActionExitCode(ActionReport.ExitCode.WARNING);
  }
}