final PublicationTeacher publicationTeacher = (PublicationTeacher) object;
final IPublicationTeacher publicationTeacher = (IPublicationTeacher) object;
            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;            }