private function generateOptions($folder, $rootAlias)
    {
        $assetsPath = $this->configurationHandler->uploadAssetsDir() . '/' . $folder;
        if (!is_dir($assetsPath)) {
            @mkdir($assetsPath);
        }

        $options = array(
            'locale' => '',
            'roots' => array(
                array(
                    'driver' => 'LocalFileSystem',
                    // driver for accessing file system (REQUIRED)
                    'path' => $assetsPath,
                    // path to files (REQUIRED)
                    'URL' => $this->configurationHandler->absoluteUploadAssetsDir() . '/' . $folder,
                    // URL to files (REQUIRED)
                    'accessControl' => 'access',
                    // disable and hide dot starting files (OPTIONAL)
                    'rootAlias' => $rootAlias
                    // disable and hide dot starting files (OPTIONAL)
                )
            )
        );

        return $options;
    }