Trying to retrieve the principal from the session as a fallback to request.getUserPrincipal.