protected function getEmbeddedComposer($siteDir, $composerFilename, $vendorDir)
    {
        $classloader = $this->getApplication()->getClassloader();
        $builder = new EmbeddedComposerBuilder($classloader, $siteDir);

        return $builder
            ->setComposerFilename($composerFilename)
            ->setVendorDirectory($vendorDir)
            ->build();
    }