private function setUpAutoloading()
    {
        //Pre-required variable's
        $package              = $this->composer->getPackage();
        $autoload_generator   = $this->composer->getAutoloadGenerator();
        $local_repository     = $this->composer->getRepositoryManager()->getLocalRepository();
        $installation_manager = $this->composer->getInstallationManager();
        if (!$installation_manager) {
            $installation_manager = new InstallationManager();
        }

        //API stolen from Composer see DumpAutoloadCommand.php
        $package_map = $autoload_generator->buildPackageMap(
            $installation_manager,
            $package,
            $local_repository->getCanonicalPackages()
        );
        $autoloads   = $autoload_generator->parseAutoloads($package_map, $package);

        //Create the classloader and register the classes.
        $class_loader = $autoload_generator->createLoader($autoloads);
        $class_loader->register();
    }