pass entity to service container