What should be done to a ref who makes racist comments toward a team he is officiating? A ref went up to a player who plays for an 85% black team and said to him - "so, y'all are good at something other than basketball huh"

How can a person in an authoritative position make those comments... aren't refs supposed to set an example about sportsmanship???