private void populateConfigurationToBeMoved(Map<AmbariServerConfigurationCategory, Map<String, String>> propertiesToBeSaved, String oldPropertyName, AmbariServerConfigurationKey key, String value) {
    AmbariServerConfigurationCategory category = key.getConfigurationCategory();
    String newPropertyName = key.key();
    Map<String, String> categoryProperties = propertiesToBeSaved.computeIfAbsent(category, k->new HashMap<>());
    categoryProperties.put(newPropertyName, value);

    if(oldPropertyName != null) {
      LOG.info("Upgrading '{}' to '{}'", oldPropertyName, newPropertyName);
    }
  }
Moves SSO and LDAP related properties from ambari.properties to ambari_configuration DB table

@throws AmbariException if there was any issue when clearing ambari.properties
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java