def METHOD_NAME(serviceClient):
    """
    Refresh the configuration
    """
    gLogger.debug("", f"Trying to refresh from {serviceClient.serverURL}")
    localVersion = gConfigurationData.getVersion()
    retVal = serviceClient.getCompressedDataIfNewer(localVersion)
    if retVal["OK"]:
        dataDict = retVal["Value"]
        newestVersion = dataDict["newestVersion"]
        if localVersion < newestVersion:
            gLogger.debug("New version available", f"Updating to version {newestVersion}...")
            gConfigurationData.loadRemoteCFGFromCompressedMem(dataDict["data"])
            gLogger.debug(f"Updated to version {gConfigurationData.getVersion()}")
            gEventDispatcher.triggerEvent("CSNewVersion", newestVersion, threaded=True)
        return S_OK()
    return retVal