public static Database findDatabase(ResultHierarchy hier,Result baseResult){
  final List<Database> dbs=filterResults(hier,baseResult,Database.class);
  return (!dbs.isEmpty()) ? dbs.get(0) : null;
}

public static Database findDatabase ( ResultHierarchy hier , Result baseResult ) { final List < Database > dbs = filterResults ( hier , baseResult , Database . class ) ; return ( ! dbs . isEmpty ( ) ) ? dbs . get ( 0 ) : null ; }
find the first database result in the tree .
