public function get($entity)
    {
        foreach ($this->services as $interface => $generator) {
            if ($entity instanceof $interface) {
                return $generator;
            }
        }

        throw new NonExistingServiceException(get_class($entity));
    }