class UserDao extends HibernateDao<User, String> {

   public List<Search> getUserSearches (User user)
   {
      Set<Search> searches = read (user.getUUID ()).getPreferences ().
            getSearches ();
      List<Search> list = new ArrayList<Search> (searches);
      Collections.sort (list, new Comparator<Search> ()
      {
         @Override
         public int compare (Search arg0, Search arg1)
         {
            return arg0.getValue ().compareTo (arg1.getValue ());
         }
      });      
      return list;
   }

}