else if(summary.getTeacher().equals(teacherLogged)){ System.out.println("********************************"); }
else if(summary.getTeacher().equals(teacherLogged)){}
    public void execute(ServiceRequest request, ServiceResponse response) throws Exception {        IUserView id = getRemoteUser(request);        Object[] arguments = getServiceCallArguments(request);        ISummary summary = getSummary(arguments);        ISuportePersistente sp = SuportePersistenteOJB.getInstance();        IPersistentTeacher persistentTeacher = sp.getIPersistentTeacher();        ITeacher teacherLogged = persistentTeacher.readTeacherByUsername(id.getUtilizador());                try {            if(isTeacherResponsible(arguments, request)){                List teachers = getExecutionCourseTeachers(arguments, request);                if(isTeacherExecutionCourseMember(teachers, arguments, id)){                    throw new NotAuthorizedFilterException();                                  }                            }            else if(summary.getTeacher().equals(teacherLogged)){                 System.out.println("********************************");            }                else if ((id == null) || (id.getRoles() == null)                    || !AuthorizationUtils.containsRole(id.getRoles(), getRoleType())                    || !lecturesExecutionCourse(id, arguments)                    || !SummaryBelongsExecutionCourse(id, arguments)                    || !summaryBelongsToTeacher(id, arguments) || !validTeacher(id, arguments)) {                throw new NotAuthorizedFilterException("error.summary.not.authorized");            }        } catch (RuntimeException ex) {            throw new NotAuthorizedFilterException(ex.getMessage());        }    }