final String casTicket = (String) request.getParameter("ticket"); final String requestURL = request.getRequestURL().toString(); final Object authenticationArgs[] = { casTicket, requestURL }; final IUserView userView = (IUserView) ServiceManagerServiceFactory.executeService(null, "Autenticacao", authenticationArgs);
IUserView userView = getCurrentUserView(request);  if (userView == null) { final String casTicket = (String) request.getParameter("ticket"); final String requestURL = request.getRequestURL().toString(); final Object authenticationArgs[] = { casTicket, requestURL };  userView = (IUserView) ServiceManagerServiceFactory.executeService(null, "Autenticacao", authenticationArgs);  }
    protected IUserView doAuthentication(ActionForm form, HttpServletRequest request)            throws FenixFilterException, FenixServiceException {        if (!useCASAuthentication) {            throw new ExcepcaoAutenticacao("errors.noAuthorization");        }        final String casTicket = (String) request.getParameter("ticket");        final String requestURL = request.getRequestURL().toString();        final Object authenticationArgs[] = { casTicket, requestURL };        final IUserView userView = (IUserView) ServiceManagerServiceFactory.executeService(null,                "Autenticacao", authenticationArgs);        return userView;    }