if (hasAnyAssociatedSummaries() || hasAnyAssociatedShiftProfessorship() || hasAnySupportLessons()) { throw new DomainException(this.getClass().getName(), "");
if (hasAnyAssociatedSummaries() || hasAnyAssociatedShiftProfessorship() || hasAnySupportLessons() || hasAnyDegreeTeachingServices() || hasAnyTeacherMasterDegreeServices()) { throw new DomainException("error.remove.professorship");
    public void delete() {        if (hasAnyAssociatedSummaries() || hasAnyAssociatedShiftProfessorship() || hasAnySupportLessons()) {            throw new DomainException(this.getClass().getName(), "");        }        this.removeExecutionCourse();        this.removeTeacher();        super.deleteDomainObject();    }