private @Nullable String trimValue(@Nullable String value,
                                     @NotNull Stack stack,
                                     @NotNull String configType,
                                     @NotNull String propertyName) {
    if (null == value) {
      return null;
    }
    else {
      TrimmingStrategy trimmingStrategy =
        PropertyValueTrimmingStrategyDefiner.defineTrimmingStrategy(stack, propertyName, configType);
      return trimmingStrategy.trim(value);
    }
  }
Ensures that properties non-stack properties are present in {@code configuration}.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java