probably better to use `service_container` for the servicemanager reference.