Principal p = context.getCallerPrincipal();
return p.getName();
*/
SecurityContext securityContext = SecurityContextAssociation.getSecurityContext();
SimplePrincipal sp = (SimplePrincipal) new JBossSecurityContextUtil(securityContext).getUserPrincipal();
Subject s = new JBossSecurityContextUtil(securityContext).getSubject();
StringBuilder b = new StringBuilder();
b.append(sp.getName() + ", ");
for(Principal p : s.getPrincipals())