}
return roles;
}
private static AuthenticationToken asAuthenticationToken(final AuthenticationRequest request) {
final AuthenticationRequestPassword passwordRequest = (AuthenticationRequestPassword) request;
final String username = passwordRequest.getName();
final String password = passwordRequest.getPassword();
return new UsernamePasswordToken(username, password);
}