private static SamlMetadataDocument parseGitObjectContentIntoSamlMetadataDocument(final GitRepository.GitObject gitObject,
                                                                                      final Collection<GitRepository.GitObject> signatureFiles) {
        val name = FilenameUtils.removeExtension(gitObject.getPath());
        val signature = signatureFiles.stream()
            .filter(sigFile -> name.equalsIgnoreCase(FilenameUtils.removeExtension(sigFile.getPath())))
            .findFirst()
            .map(GitRepository.GitObject::getContent)
            .orElse(StringUtils.EMPTY);

        return SamlMetadataDocument.builder()
            .id(System.nanoTime())
            .name(name)
            .value(gitObject.getContent())
            .signature(signature)
            .build();
    }
This is {@link GitSamlRegisteredServiceMetadataResolver}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp-metadata-git/src/main/java/org/apereo/cas/support/saml/metadata/resolver/GitSamlRegisteredServiceMetadataResolver.java