@Override
    public Class<SamlIdPMetadataDocument> getType() {
        return (Class<SamlIdPMetadataDocument>) getEntityClass();
    }
This is {@link JpaSamlIdPMetadataDocumentFactory}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp-metadata-jpa/src/main/java/org/apereo/cas/support/saml/idp/metadata/jpa/JpaSamlIdPMetadataDocumentFactory.java