Program: 167886
Project: 167886
Buggy source:
protected ModelNode buildWritePropertyRequest(CommandContext ctx) throws CommandFormatException {
  final String name=this.name.getValue(ctx.getParsedCommandLine(),true);
  ModelNode composite=new ModelNode();
  composite.get("String_Node_Str").set("String_Node_Str");
  composite.get("String_Node_Str").setEmptyList();
  ModelNode steps=composite.get("String_Node_Str");
  ParsedCommandLine args=ctx.getParsedCommandLine();
  final String profile;
  if (ctx.isDomainMode()) {
    profile=this.profile.getValue(args);
    if (profile == null) {
      throw new OperationFormatException("String_Node_Str");
    }
  }
 else {
    profile=null;
  }
  if (nodeProps == null) {
    getArguments(ctx);
  }
  for (  String argName : args.getPropertyNames()) {
    if (argName.equals("String_Node_Str") || this.name.getFullName().equals(argName)) {
      continue;
    }
    final ArgumentWithValue arg=(ArgumentWithValue)nodeProps.get(argName);
    if (arg == null) {
      throw new CommandFormatException("String_Node_Str" + argName + "String_Node_Str");
    }
    DefaultOperationRequestBuilder builder=new DefaultOperationRequestBuilder();
    if (profile != null) {
      builder.addNode("String_Node_Str",profile);
    }
    for (    OperationRequestAddress.Node node : nodePath) {
      builder.addNode(node.getType(),node.getName());
    }
    builder.addNode(type,name);
    builder.setOperationName("String_Node_Str");
    final String propName;
    if (argName.charAt(1) == '-') {
      propName=argName.substring(2);
    }
 else {
      propName=argName.substring(1);
    }
    builder.addProperty("String_Node_Str",propName);
    final String valueString=args.getPropertyValue(argName);
    ModelNode nodeValue=arg.getValueConverter().fromString(valueString);
    builder.getModelNode().get("String_Node_Str").set(nodeValue);
    steps.add(builder.buildRequest());
  }
  return composite;
}

Fixed version (ground truth):
protected ModelNode buildWritePropertyRequest(CommandContext ctx) throws CommandFormatException {
  final String name=this.name.getValue(ctx.getParsedCommandLine(),true);
  ModelNode composite=new ModelNode();
  composite.get("String_Node_Str").set("String_Node_Str");
  composite.get("String_Node_Str").setEmptyList();
  ModelNode steps=composite.get("String_Node_Str");
  ParsedCommandLine args=ctx.getParsedCommandLine();
  final String profile;
  if (ctx.isDomainMode()) {
    profile=this.profile.getValue(args);
    if (profile == null) {
      throw new OperationFormatException("String_Node_Str");
    }
  }
 else {
    profile=null;
  }
  final Map<String,CommandArgument> nodeProps=loadArguments(ctx,null);
  for (  String argName : args.getPropertyNames()) {
    if (argName.equals("String_Node_Str") || this.name.getFullName().equals(argName)) {
      continue;
    }
    final ArgumentWithValue arg=(ArgumentWithValue)nodeProps.get(argName);
    if (arg == null) {
      throw new CommandFormatException("String_Node_Str" + argName + "String_Node_Str");
    }
    DefaultOperationRequestBuilder builder=new DefaultOperationRequestBuilder();
    if (profile != null) {
      builder.addNode("String_Node_Str",profile);
    }
    for (    OperationRequestAddress.Node node : nodePath) {
      builder.addNode(node.getType(),node.getName());
    }
    builder.addNode(type,name);
    builder.setOperationName("String_Node_Str");
    final String propName;
    if (argName.charAt(1) == '-') {
      propName=argName.substring(2);
    }
 else {
      propName=argName.substring(1);
    }
    builder.addProperty("String_Node_Str",propName);
    final String valueString=args.getPropertyValue(argName);
    ModelNode nodeValue=arg.getValueConverter().fromString(valueString);
    builder.getModelNode().get("String_Node_Str").set(nodeValue);
    steps.add(builder.buildRequest());
  }
  return composite;
}