Entities are now ServiceLocator-aware classes.