Program: 143577
Project: 143577
Buggy source:
public void setTitle(String name){
  Solution solution=this.client.getSolution();
  String titleString="String_Node_Str";
  String solutionTitle=solution.getTitleText();
  if (solutionTitle == null) {
    titleString=solution.getName();
  }
 else   if (!solutionTitle.equals("String_Node_Str")) {
    titleString=solutionTitle;
  }
  titleString=client.getI18NMessageIfPrefixed(titleString);
  if (name != null && !name.trim().equals("String_Node_Str") && !"String_Node_Str".equals(name) && main != null) {
    String nameString=client.getI18NMessageIfPrefixed(name);
    FormController formController=main.getController();
    if (formController != null) {
      String name2=Text.processTags(nameString,formController.getTagResolver());
      if (name2 != null)       nameString=name2;
    }
 else {
      String name2=Text.processTags(nameString,TagResolver.createResolver((IRecordInternal)new PrototypeState(null)));
      if (name2 != null)       nameString=name2;
    }
    if (!nameString.trim().equals("String_Node_Str")) {
      if ("String_Node_Str".equals(titleString)) {
        titleString+=nameString;
      }
 else {
        titleString+="String_Node_Str" + nameString;
      }
    }
  }
  String appName="String_Node_Str";
  boolean branding=Utils.getAsBoolean(client.getSettings().getProperty("String_Node_Str","String_Node_Str"));
  String appTitle=client.getSettings().getProperty("String_Node_Str");
  if (branding && appTitle != null) {
    appName=appTitle;
  }
  if (titleString.equals("String_Node_Str")) {
    titleString=appName;
  }
 else {
    titleString+="String_Node_Str" + appName;
  }
  this.title.setDefaultModelObject(titleString);
  if (getRequestCycle().getRequestTarget() instanceof AjaxRequestTarget)   ((AjaxRequestTarget)getRequestCycle().getRequestTarget()).addComponent(title);
}

Fixed version (ground truth):
public void setTitle(String name){
  touch();
  Solution solution=this.client.getSolution();
  String titleString="String_Node_Str";
  String solutionTitle=solution.getTitleText();
  if (solutionTitle == null) {
    titleString=solution.getName();
  }
 else   if (!solutionTitle.equals("String_Node_Str")) {
    titleString=solutionTitle;
  }
  titleString=client.getI18NMessageIfPrefixed(titleString);
  if (name != null && !name.trim().equals("String_Node_Str") && !"String_Node_Str".equals(name) && main != null) {
    String nameString=client.getI18NMessageIfPrefixed(name);
    FormController formController=main.getController();
    if (formController != null) {
      String name2=Text.processTags(nameString,formController.getTagResolver());
      if (name2 != null)       nameString=name2;
    }
 else {
      String name2=Text.processTags(nameString,TagResolver.createResolver((IRecordInternal)new PrototypeState(null)));
      if (name2 != null)       nameString=name2;
    }
    if (!nameString.trim().equals("String_Node_Str")) {
      if ("String_Node_Str".equals(titleString)) {
        titleString+=nameString;
      }
 else {
        titleString+="String_Node_Str" + nameString;
      }
    }
  }
  String appName="String_Node_Str";
  boolean branding=Utils.getAsBoolean(client.getSettings().getProperty("String_Node_Str","String_Node_Str"));
  String appTitle=client.getSettings().getProperty("String_Node_Str");
  if (branding && appTitle != null) {
    appName=appTitle;
  }
  if (titleString.equals("String_Node_Str")) {
    titleString=appName;
  }
 else {
    titleString+="String_Node_Str" + appName;
  }
  this.title.setDefaultModelObject(titleString);
  if (getRequestCycle().getRequestTarget() instanceof AjaxRequestTarget)   ((AjaxRequestTarget)getRequestCycle().getRequestTarget()).addComponent(title);
}