nonAffiliatedTeacherName.append("%");
nonAffiliatedTeacherName.append(".*");
    public List run(String nameToSearch) throws ExcepcaoPersistencia{        String names[] = nameToSearch.split(" ");        StringBuilder nonAffiliatedTeacherName = new StringBuilder("%");        for (int i = 0; i <= names.length - 1; i++) {            nonAffiliatedTeacherName.append(names[i]);            nonAffiliatedTeacherName.append("%");        }        Set<NonAffiliatedTeacher> nonAffiliatedTeachers = NonAffiliatedTeacher.findNonAffiliatedTeacherByName(nonAffiliatedTeacherName.toString());        List infoNonAffiliatedTeachers = new ArrayList(nonAffiliatedTeachers.size());        for (NonAffiliatedTeacher nonAffiliatedTeacher : nonAffiliatedTeachers) {            InfoNonAffiliatedTeacher infoNonAffiliatedTeacher = new InfoNonAffiliatedTeacher();            infoNonAffiliatedTeacher.copyFromDomain(nonAffiliatedTeacher);            infoNonAffiliatedTeachers.add(infoNonAffiliatedTeacher);        }        return infoNonAffiliatedTeachers;           }