public static EvaluationResult findOrCreate(ResultHierarchy hierarchy,Result parent,String name,String shortname){
  ArrayList<EvaluationResult> ers=ResultUtil.filterResults(hierarchy,parent,EvaluationResult.class);
  EvaluationResult ev=null;
  for (  EvaluationResult e : ers) {
    if (shortname.equals(e.getShortName())) {
      ev=e;
      break;
    }
  }
  if (ev == null) {
    ev=new EvaluationResult(name,shortname);
    hierarchy.add(parent,ev);
  }
  return ev;
}

public static EvaluationResult findOrCreate ( ResultHierarchy hierarchy , Result parent , String name , String shortname ) { ArrayList < EvaluationResult > ers = ResultUtil . filterResults ( hierarchy , parent , EvaluationResult . class ) ; EvaluationResult ev = null ; for ( EvaluationResult e : ers ) { if ( shortname . equals ( e . getShortName ( ) ) ) { ev = e ; break ; } } if ( ev == null ) { ev = new EvaluationResult ( name , shortname ) ; hierarchy . add ( parent , ev ) ; } return ev ; }
find or create an evaluation result .
