private function getDefinitionForServiceId($serviceId, ServiceConfig $serviceConfig)
    {

        if ($serviceConfig->has(ServiceConfig::LAZY) && !$serviceConfig->get(ServiceConfig::LAZY)) {
            return new Reference($serviceId);
        } else {
            return new Definition($this->invokeClass, array(new Reference('service_container'), $serviceId));
        }
    }