public void setMetadataRootElement(final Element metadataRootElement) {
        this.metadataRootElement = metadataRootElement;
        try {
            val unmarshaller = getUnmarshallerFactory().ensureUnmarshaller(metadataRootElement);
            val metadataTemp = unmarshaller.unmarshall(metadataRootElement);
            val newBackingStore = preProcessNewMetadata(metadataTemp);
            releaseMetadataDOM(metadataTemp);
            setBackingStore(newBackingStore);
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
        }
    }
Sets metadata root element and reinitialize the backing store.

@param metadataRootElement the metadata root element
support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/idp/metadata/BaseElementMetadataResolver.java