protected void upgradeExtension(InstalledExtension extension, String namespace)
    {
        if (!isSkipped(extension, namespace)) {
            NavigableSet<Version> versions = getVersions(extension, namespace);

            // Useless to continue if the extension does not have any available version
            if (!versions.isEmpty()) {
                upgradeExtension(extension, namespace, versions.descendingSet());
            }
        }
    }
protected void upgradeExtension ( InstalledExtension extension , String namespace ) { if ( ! isSkipped ( extension , namespace ) ) { NavigableSet < Version > versions = getVersions ( extension , namespace ) ; if ( ! versions . isEmpty ( ) ) { upgradeExtension ( extension , namespace , versions . descendingSet ( ) ) ; } } }
@param extension the extension currently installed
@param namespace the namespace where the extension is installed