public Tourist findName(String name) { List list = touristdao.findName(name); if (list.size() > 0) { return (Tourist) list.get(0); } else { return null; } }