@CanIgnoreReturnValue
    public CasConfigurationMetadataRepositoryJsonBuilder withJsonResource(final InputStream inputStream, final Charset charset) {
        Objects.requireNonNull(inputStream, "InputStream must not be null.");
        this.repositories.add(add(inputStream, charset));
        return this;
    }
Add the content of a {@link ConfigurationMetadataRepository} defined by the
specified {@link InputStream} json document using the specified {@link Charset}. If
this metadata repository holds items that were loaded previously, these are
ignored.
<p>
Leaves the stream open when done.

@param inputStream the source input stream
@param charset     the charset of the input
@return this builder
support/cas-server-support-configuration-metadata-repository/src/main/java/org/springframework/boot/configurationmetadata/CasConfigurationMetadataRepositoryJsonBuilder.java