private function updateMenu(stdClass $config, stdClass $serviceData)
    {
        $menuItem = [
            "route"         => 'admin.' . $serviceData->serviceRouteName . '.index',
            "translation"   => $serviceData->translationsLocation . '.page_title',
            "icon"          => $serviceData->serviceIcon,
            "aclPermission" => $serviceData->aclPrefix . "_list",
            "priority"      => 10,
        ];

        $newMenu = true;

            //TODO check if adminMenu exists if not create []
        foreach ( $config->adminMenu as &$existingMenuItem ) {
            if( $existingMenuItem->route == $menuItem['route'] ) {
                if( $this->confirm('Duplicate Menu item found with ' . $existingMenuItem->path . ' path. Confirm override', 'no') ) {
                    $existingMenuItem = $menuItem;
                    $newMenu = false;
                    break;
                } else {
                    $this->abort('Can not override existing configuration. Aborting...');

                    return null;
                }
            }
        }

        if ($newMenu)
            $config->adminMenu = array_merge ($config->adminMenu, [$menuItem]);

        return $config;
    }