List<String> roles = AssertionUtil.getRoles(assertion, roleKeys);
if (roles.size() > 0) {
SimpleGroup group = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER);
for (String role : roles) {
group.addMember(new SimplePrincipal(role));
}
subject.getPrincipals().add(group);
}
}