class ServletSecurityAuthenticationService extends GroupAdapterAuthorizationSource implements AuthenticationService {

    @Override
    public boolean isLoggedIn() {
        HttpServletRequest request = getRequestForThread();
        return request.getUserPrincipal() != null;
    }

    public  ServletSecurityAuthenticationService();

}