@Override
    public String getMetadata(final EntityDescriptor entityDescriptor) throws Exception {
        val entityDescriptorElement = Objects.requireNonNull(this.marshallerFactory
            .getMarshaller(EntityDescriptor.DEFAULT_ELEMENT_NAME)).marshall(entityDescriptor);
        return SerializeSupport.nodeToString(entityDescriptorElement);
    }
Generates metadata object with standard values and overridden user defined values.

@author Misagh Moayyed
@since 4.0.1
pac4j-saml/src/main/java/org/pac4j/saml/metadata/BaseSAML2MetadataGenerator.java