code: protected void updateConfigsFromVersion(int fileVersion) {
          if (isLatestConfigVersion(fileVersion)) {
              return;
          }
  
          if (fileVersion == ERROR_READING_CONFIG_VERSION) {
              // There's not much that can be done (quickly and easily)... log and return.
              logger.warn("Configurations might not be in expected state, errors might happen...");
              return;
          }
  
          if (fileVersion != NO_CONFIG_VERSION) {
              if (fileVersion > getCurrentVersion()) {
                  logger.warn("Configurations will not be updated, file version (v" + fileVersion
                          + ") is greater than the version of running code (v" + getCurrentVersion()
                          + "), errors might happen...");
                  return;
              }
              logger.info("Updating configurations from v" + fileVersion + " to v" + getCurrentVersion());
          }
  
          updateConfigsImpl(fileVersion);
  
          getConfig().setProperty(getConfigVersionKey(), getCurrentVersion());
      }
docs: Called when the configuration version in the file is different than the version of the running code.
  <p>
  If the given {@code fileVersion} is:
  <ul>
  <li>&lt; current version - expected case, the configurations are changed/updated to the current version by calling the
  method {@code updateConfigsImpl(int)}. After calling the method the version in the configuration file is updated to the
  current version.</li>
  <li>&gt; current version - no changes/updates are made, the method logs a warn and returns;</li>
  <li>{@code NO_CONFIG_VERSION} - only the current version is written to the configuration file (Note: the method
  {@code updateConfigsImpl(int)} is still called);</li>
  <li>{@code ERROR_READING_CONFIG_VERSION} - no changes/updates are made, the method logs a warn and returns.</li>
  </ul>
  <p>
  <strong>Note:</strong> It shouldn't be overridden in normal conditions.
  
  @param fileVersion the version of the configurations in the file
  @see #getCurrentVersion()
  @see #NO_CONFIG_VERSION
  @see #ERROR_READING_CONFIG_VERSION
  @see #updateConfigsImpl(int)
  @see #updateConfigFile()