protected function _installAutoloader(PackageInterface $package)
    {
        $path     = $this->_getAutoloaderPath($package);
        $manifest = $this->_getKoowaManifest($package);

        if(!file_exists($path))
        {
            $platform       = $this->_isPlatform();
            $classname      = $platform ? 'Nooku\Library\ObjectManager' : 'KObjectManager';
            $bootstrap      = $platform ? '' : 'KoowaAutoloader::bootstrap();';

            list($vendor, ) = explode('/', $package->getPrettyName());
            $component      = (string) $manifest->name;

            $contents = <<<EOL
<?php
/**
 * This file has been generated automatically by Composer. Any changes to this file will not persist.
 * You can override this autoloader by supplying an autoload.php file in the root of the relevant component.
 **/

$bootstrap

$classname::getInstance()
    ->getObject('lib:object.bootstrapper')
    ->registerComponent(
        '$component',
        __DIR__,
        '$vendor'
    );
EOL;

            file_put_contents($path, $contents);
        }
    }