code: @Deprecated
      protected boolean resolveReplacement(StringBuilder builder, String str, String expr) {
          if (environment.containsProperty(expr)) {
              builder.append(environment.getProperty(expr, String.class).orElseThrow(() -> new ConfigurationException("Could not resolve placeholder ${" + expr + "} in value: " + str)));
              return true;
          }
          return false;
      }
docs: Resolves a replacement for the given expression. Returning true if the replacement was resolved.
  
  @deprecated No longer used internally. See {@link #resolveExpression(String, String, Class)}
  @param builder The builder
  @param str The full string
  @param expr The current expression
  @return True if a placeholder was resolved