private function prepareConfigurationArray(array $configuration)
    {
        $pathConfiguration = [
            'dataPath',
            'templatePath',
            'resourcePath',
        ];
        foreach ($pathConfiguration as $key) {
            if (isset($configuration[$key])) {
                $configuration[$key] = rtrim($configuration[$key], '/') . '/';
            }
        }

        return $configuration;
    }