Using equals instead of == in User.hasRole()