public ims.emergency.vo.UserAssessmentForWhiteboardConfigVoCollection listAssessments(String searchName) { DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(" "); String query = "from UserAssessment u where upper(u.name) like :name and u.activeStatus =:status"; query += hql.toString(); List <?> list = factory.find(query, new String[]{"name","status"} , new Object[] {searchName+"%",getDomLookup(PreActiveActiveInactiveStatus.ACTIVE)}); return UserAssessmentForWhiteboardConfigVoAssembler.createUserAssessmentForWhiteboardConfigVoCollectionFromUserAssessment(list).sort(); }