Program: 15624
Project: 15624
Buggy source:
private void findApplication(){
  SesameSPARQLClient sparqlCl=null;
  try {
    sparqlCl=new SesameSPARQLClient();
  }
 catch (  RepositoryException e) {
    logger.error("String_Node_Str",e);
    return;
  }
  oamo=new OAMO();
  TupleQueryResult qres=sparqlCl.sparqlToQResult(Queries.getRootOAMOData(oamoID));
  Queries.RootOAMOData rootOAMODATA=Queries.parseOAMORootData(qres);
  oamo.setName(rootOAMODATA.getOamoName());
  oamo.setId(rootOAMODATA.getUserID());
  qres=sparqlCl.sparqlToQResult(Queries.getOSMOListOfOAMO(oamoID));
  ArrayList<Queries.OSMOData> OSMODataList=Queries.parseServiceStatusOfOSMO(qres);
  for (  Queries.OSMOData osmodata : OSMODataList) {
    OSMO osmo=new OSMO();
    osmo.setId(osmodata.getId());
    osmo.setName(osmodata.getName());
    osmo.setDescription(osmodata.getDesc());
    QueryRequest qr=new QueryRequest();
    qr.setQuery(osmodata.getqString());
    osmo.setQueryRequest(qr);
    qres=sparqlCl.sparqlToQResult(Queries.getWidgetPreListByService(osmodata.getId()));
    ArrayList<Queries.WidgetPresentationData> widgetPresentationDataList=Queries.parseWidgetPreListByService(qres);
    for (    Queries.WidgetPresentationData widgetPresentationData : widgetPresentationDataList) {
      RequestPresentation reqp=new RequestPresentation();
      Widget w=new Widget();
      w.setWidgetID(widgetPresentationData.getId());
      qres=sparqlCl.sparqlToQResult(Queries.getWidgetAttrByWidgetPre(widgetPresentationData.getId()));
      ArrayList<Queries.WidgetAttr> widgetAttr=Queries.parseWidgetAttributes(qres);
      for (      Queries.WidgetAttr wattr : widgetAttr) {
        PresentationAttr pattr=new PresentationAttr();
        pattr.setName(wattr.getName());
        pattr.setValue(wattr.getValue());
        w.getPresentationAttr().add(pattr);
      }
      reqp.getWidget().add(w);
      osmo.setRequestPresentation(reqp);
    }
    oamo.getOSMO().add(osmo);
  }
}

Fixed version (ground truth):
private void findApplication(){
  SesameSPARQLClient sparqlCl=null;
  try {
    sparqlCl=new SesameSPARQLClient();
  }
 catch (  RepositoryException e) {
    logger.error("String_Node_Str",e);
    return;
  }
  oamo=new OAMO();
  TupleQueryResult qres=sparqlCl.sparqlToQResult(Queries.getRootOAMOData(oamoID));
  Queries.RootOAMOData rootOAMODATA=Queries.parseOAMORootData(qres);
  oamo.setName(rootOAMODATA.getOamoName());
  oamo.setId(rootOAMODATA.getUserID());
  qres=sparqlCl.sparqlToQResult(Queries.getOSMOListOfOAMO(oamoID));
  ArrayList<Queries.OSMOData> OSMODataList=Queries.parseServiceStatusOfOSMO(qres);
  for (  Queries.OSMOData osmodata : OSMODataList) {
    OSMO osmo=new OSMO();
    osmo.setId(osmodata.getId());
    osmo.setName(osmodata.getName());
    osmo.setDescription(osmodata.getDesc());
    QueryRequest qr=new QueryRequest();
    qr.setQuery(osmodata.getqString());
    osmo.getQueryRequest().add(qr);
    qres=sparqlCl.sparqlToQResult(Queries.getWidgetPreListByService(osmodata.getId()));
    ArrayList<Queries.WidgetPresentationData> widgetPresentationDataList=Queries.parseWidgetPreListByService(qres);
    for (    Queries.WidgetPresentationData widgetPresentationData : widgetPresentationDataList) {
      RequestPresentation reqp=new RequestPresentation();
      Widget w=new Widget();
      w.setWidgetID(widgetPresentationData.getId());
      qres=sparqlCl.sparqlToQResult(Queries.getWidgetAttrByWidgetPre(widgetPresentationData.getId()));
      ArrayList<Queries.WidgetAttr> widgetAttr=Queries.parseWidgetAttributes(qres);
      for (      Queries.WidgetAttr wattr : widgetAttr) {
        PresentationAttr pattr=new PresentationAttr();
        pattr.setName(wattr.getName());
        pattr.setValue(wattr.getValue());
        w.getPresentationAttr().add(pattr);
      }
      reqp.getWidget().add(w);
      osmo.setRequestPresentation(reqp);
    }
    oamo.getOSMO().add(osmo);
  }
}