String username = (String) request.getServiceParameters().parametersArray()[0];
final IUserView userView = getRemoteUser(request);
    public void execute(ServiceRequest request, ServiceResponse response) throws FilterException, Exception {        String username = (String) request.getServiceParameters().parametersArray()[0];        String costCenter = (String) request.getServiceParameters().parametersArray()[1];        ServiceParameters s = request.getServiceParameters();        Teacher teacher = Teacher.readTeacherByUsername(username);        Integer userNumber = null;        if (teacher != null)            userNumber = teacher.getTeacherNumber();        else {            Employee employee = Person.readPersonByUsername(username).getEmployee();            if (employee != null)                userNumber = employee.getEmployeeNumber();        }        if (userNumber == null)            throw new NotAuthorizedFilterException();        s.addParameter("userNumber", userNumber.toString(), s.parametersArray().length);        if (costCenter != null && !costCenter.equals("")) {            Role role = Role.getRoleByRoleType(RoleType.INSTITUCIONAL_PROJECTS_MANAGER);            if (!costCenter.equals(role.getPortalSubApplication())) {                PersistentSuportOracle p = PersistentSuportOracle.getInstance();                if (p.getIPersistentProjectUser().getCCNameByCoordinatorAndCC(userNumber, new Integer(costCenter))!=null) {                    s.addParameter("userNumber", costCenter, s.parametersArray().length - 1);                }            }            roleToAuthorize = RoleType.INSTITUCIONAL_PROJECTS_MANAGER;        } else {            roleToAuthorize = RoleType.PROJECTS_MANAGER;            s.addParameter("costCenter", "", 1);        }        super.execute(request, response);        request.setServiceParameters(s);    }