public function optimize (stdClass $data)
    {
        $this->createRouteFolders($data);

        $fi = new FilesystemIterator($data->rootDirectory . 'app/routes/admin/', FilesystemIterator::SKIP_DOTS);
        $count = str_pad(iterator_count($fi) + 1, 2, '0', STR_PAD_LEFT) . '_';

        $data->serviceRouteName = 'routes.' . $this->stringWithDots ($data->serviceURL);

        $data->adminRoutesDestination = $data->rootDirectory . 'app/routes/admin/' . $count . $data->serviceRouteName . '.php';
        $data->apiRoutesDestination = $data->rootDirectory . 'app/routes/api/' . $count . $data->serviceRouteName . '.php';

        $data->aclPrefix = $this->stringWithUnderscore ($data->directory . $data->serviceRouteName);

        return $data;
    }