Custom roles class is updated for spring security.