final PublicationTeacher publicationTeacher = (PublicationTeacher) object;
final IPublicationTeacher publicationTeacher = (IPublicationTeacher) object;
    public List readByTeacherAndPublicationArea(final ITeacher teacher, final PublicationArea publicationArea)            throws ExcepcaoPersistencia{        final List<IPublicationTeacher> publicationTeachers = (List<IPublicationTeacher>) readAll(PublicationTeacher.class);        return (List<IPublicationTeacher>)CollectionUtils.select(publicationTeachers,new Predicate() {            public boolean evaluate(Object object) {                final PublicationTeacher publicationTeacher = (PublicationTeacher) object;                if (publicationTeacher.getTeacher().getIdInternal().equals(teacher.getIdInternal()) &&                        publicationTeacher.getPublicationArea().equals(publicationArea)) {                    return true;                }                return false;            }        });            }