private function generateRoutes (stdClass $service, string $type)
    {
        switch ($type) {
            case 'api' :

                $destination = $service->apiRoutesDestination;
                break;

            case 'admin' :

                $destination = $service->adminRoutesDestination;
                break;

            default :
                return '';
        }

        $this->createFileFromTemplate ([
            "destination"         => $destination,
            "templateDestination" => __DIR__ . '/../templates/service/' . $type . '.routes.hctpl',
            "content"             => [
                "serviceURL"           => $service->serviceURL,
                "controllerNameDotted" => $service->serviceRouteName,
                "acl_prefix"           => $service->aclPrefix,
                "controllerName"       => $service->controllerNameForRoutes,
            ],
        ]);

        return $destination;
    }