code: private void appendRoles(final StringBuilder builder, final User user) {
          for (final UserRoleName role : user.getRoles()) {
              append(builder, ",", role.name());
          }
      }
docs: Append roles to the builder.
  
  @param builder the builder
  @param user the user whose roles are appended