@Override
    public boolean storeMetadata(String metadata, boolean force) throws Exception {
        metadataResource = new ByteArrayResource(metadata.getBytes(StandardCharsets.UTF_8));
        return metadataResource.exists();
    }
Generate SAML metadata into a byte array resource.

@author Misagh Moayyed
@since 6.1.2
pac4j-saml/src/main/java/org/pac4j/saml/metadata/SAML2InMemoryMetadataGenerator.java