Added assertion of service != NULL to locator.