final public void setStudentAreas(Branch specializationArea, Branch secundaryArea) throws NotAuthorizedBranchChangeException,
BothAreasAreTheSameServiceException, InvalidArgumentsServiceException, DomainException {
if (!getCanChangeSpecializationArea()) {
throw new NotAuthorizedBranchChangeException();
}
if (areNewAreasCompatible(specializationArea, secundaryArea)) {
setStudentAreasWithoutRestrictions(specializationArea, secundaryArea);
}