Program: 88629
Project: 88629
Buggy source:
@SuppressWarnings("String_Node_Str") private boolean exportHierarchy(Element view){
  DocumentGenerator dg=new DocumentGenerator(view,null,null);
  Document dge=dg.parseDocument(true,true,true);
  ViewHierarchyVisitor vhv=new ViewHierarchyVisitor();
  dge.accept(vhv);
  String url=ExportUtility.getUrlWithWorkspace();
  if (url == null)   return false;
  boolean document=false;
  Stereotype documentView=StereotypesHelper.getStereotype(Application.getInstance().getProject(),DocGen3Profile.documentViewStereotype,"String_Node_Str");
  if (StereotypesHelper.hasStereotypeOrDerived(view,documentView))   document=true;
  JSONObject view2view=vhv.getView2View();
  if (document) {
    String docurl=url + "String_Node_Str";
    JSONObject send=new JSONObject();
    JSONArray documents=new JSONArray();
    JSONObject doc=new JSONObject();
    JSONObject specialization=new JSONObject();
    doc.put("String_Node_Str",specialization);
    specialization.put("String_Node_Str",ExportUtility.formatView2View(view2view));
    specialization.put("String_Node_Str",vhv.getNosections());
    doc.put("String_Node_Str",view.getID());
    documents.add(doc);
    send.put("String_Node_Str",documents);
    send.put("String_Node_Str","String_Node_Str");
    if (ExportUtility.send(docurl,send.toJSONString()) == null)     return false;
  }
 else {
    JSONArray views=new JSONArray();
    for (    Object viewid : view2view.keySet()) {
      JSONObject viewinfo=new JSONObject();
      JSONObject specialization=new JSONObject();
      viewinfo.put("String_Node_Str",viewid);
      specialization.put("String_Node_Str",view2view.get(viewid));
      viewinfo.put("String_Node_Str",specialization);
      views.add(viewinfo);
    }
    JSONObject send=new JSONObject();
    send.put("String_Node_Str",views);
    send.put("String_Node_Str","String_Node_Str");
    if (ExportUtility.send(url + "String_Node_Str",send.toJSONString()) == null)     return false;
  }
  return true;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private boolean exportHierarchy(Element view){
  DocumentGenerator dg=new DocumentGenerator(view,null,null);
  Document dge=dg.parseDocument(true,true,true);
  ViewHierarchyVisitor vhv=new ViewHierarchyVisitor();
  dge.accept(vhv);
  String url=ExportUtility.getUrlWithWorkspace();
  if (url == null)   return false;
  boolean document=false;
  Stereotype documentView=StereotypesHelper.getStereotype(Application.getInstance().getProject(),DocGen3Profile.documentViewStereotype,"String_Node_Str");
  if (StereotypesHelper.hasStereotypeOrDerived(view,documentView))   document=true;
  JSONObject view2view=vhv.getView2View();
  if (document) {
    String docurl=url + "String_Node_Str";
    JSONObject send=new JSONObject();
    JSONArray documents=new JSONArray();
    JSONObject doc=new JSONObject();
    JSONObject specialization=new JSONObject();
    specialization.put("String_Node_Str","String_Node_Str");
    doc.put("String_Node_Str",specialization);
    specialization.put("String_Node_Str",ExportUtility.formatView2View(view2view));
    specialization.put("String_Node_Str",vhv.getNosections());
    doc.put("String_Node_Str",view.getID());
    documents.add(doc);
    send.put("String_Node_Str",documents);
    send.put("String_Node_Str","String_Node_Str");
    OutputQueue.getInstance().offer(new Request(docurl,send.toJSONString()));
  }
 else {
    JSONArray views=new JSONArray();
    for (    Object viewid : view2view.keySet()) {
      JSONObject viewinfo=new JSONObject();
      JSONObject specialization=new JSONObject();
      viewinfo.put("String_Node_Str",viewid);
      specialization.put("String_Node_Str",view2view.get(viewid));
      viewinfo.put("String_Node_Str",specialization);
      views.add(viewinfo);
    }
    JSONObject send=new JSONObject();
    send.put("String_Node_Str",views);
    send.put("String_Node_Str","String_Node_Str");
    OutputQueue.getInstance().offer(new Request(url + "String_Node_Str",send.toJSONString()));
  }
  return true;
}