@Override
public void render(final Context context, final RoleAssignment roleAssignment, final SafeHtmlBuilder builder) {
boolean hasExcludes = !roleAssignment.getExcludes().isEmpty();
List<Role> roles = new ArrayList<Role>(roleAssignment.getRoles());
RoleComparator comperator = new RoleComparator();
Collections.sort(roles, comperator);
for (Iterator<Role> iterator = roles.iterator(); iterator.hasNext(); ) {
Role role = iterator.next();
builder.append(roleAsSafeHtml(role, true));
if (iterator.hasNext() || hasExcludes) {