public function saveRootModuleFile(RootModuleFile $moduleFile)
    {
        $this->saveFile($moduleFile, $moduleFile->getPath(), array(
            'targetVersion' => $moduleFile->getVersion(),
        ));

        if ($this->factoryManager) {
            $this->factoryManager->autoGenerateFactoryClass();
        }
    }