private function updateActions(stdClass $config, stdClass $serviceData)
    {
        $servicePermissions = [
            "name"       => "admin." . $serviceData->serviceRouteName,
            "controller" => $serviceData->controllerNamespace . '\\' . $serviceData->controllerName,
            "actions"    => [
                $serviceData->aclPrefix . "_list",
                $serviceData->aclPrefix . "_create",
                $serviceData->aclPrefix . "_update",
                $serviceData->aclPrefix . "_delete",
                $serviceData->aclPrefix . "_force_delete",
            ],
        ];

        $contentChanged = false;

        foreach ( $config->acl->permissions as &$value ) {
            if( $value->name == "admin." . $serviceData->serviceRouteName ) {
                if( $this->confirm('Duplicate ACL found ' . "admin." . $serviceData->serviceRouteName . ' Confirm override', 'no') ) {
                    $contentChanged = true;
                    $value = $servicePermissions;
                    break;
                } else {
                    $this->abort('Can not override existing configuration. Aborting...');

                    return null;
                }
            }
        }

        if( ! $contentChanged )
            $config->acl->permissions = array_merge($config->acl->permissions, [$servicePermissions]);

        return $config;
    }