protected Map<String, String> toProperties(Collection<AmbariConfigurationEntity> configurationEntities) {
    Map<String, String> map = new HashMap<>();

    if (configurationEntities != null) {
      for (AmbariConfigurationEntity entity : configurationEntities) {
        map.put(entity.getPropertyName(), entity.getPropertyValue());
      }
    }

    return map;
  }
Converts a collection of {@link AmbariConfigurationEntity}s into a map of property names to values.

@param configurationEntities the collection of {@link AmbariConfigurationEntity}s to process
@return a map of property names to values; or an empty map if no entities are available to process
ambari-server/src/main/java/org/apache/ambari/server/configuration/AmbariServerConfigurationProvider.java