private function findResolveTarget(ContainerBuilder $container, $class)
    {
        $resolveTargets = $this->getResolveTargets($container);

        if (isset($resolveTargets[$class])) {
            $class = $resolveTargets[$class];
        }

        return $class;
    }