"Expected passed principal to be of type PrincipalSpringUserToken but was " + principal.getClass().getName());
"Expected passed principal to be of type PrincipalAcegiUserToken");
    public boolean isUserInRole(HttpServletRequest request,        HttpServletResponse response, ServletContext application,        Principal principal, String role) {        if (!(principal instanceof PrincipalAcegiUserToken)) {            if (logger.isWarnEnabled()) {                logger.warn(                    "Expected passed principal to be of type PrincipalSpringUserToken but was "                    + principal.getClass().getName());            }            return false;        }        PrincipalAcegiUserToken test = (PrincipalAcegiUserToken) principal;        return test.isUserInRole(role);    }