for (String item : roleListToCheck) {
out.println("<p>role:" + item + "=" + ((request.isUserInRole(item)) ? "true" : "false") + "</p>");
}
if (p instanceof FederationPrincipal) {
FederationPrincipal fp = (FederationPrincipal)p;
ClaimCollection claims = fp.getClaims();
for (Claim c : claims) {
out.println("<p>" + c.getClaimType().toString() + "=" + c.getValue() + "</p>");
}
Element el = fp.getLoginToken();
if (el != null) {
out.println("loginToken=FOUND{FederationPrincipal}<p>");
}
el = SecurityTokenThreadLocal.getToken();