@Override
    public File determine(final RegisteredService service, final String extension) {
        return FunctionUtils.doUnchecked(() -> {
            val fileName = resourceNamingStrategy.build(service, extension);
            var parentDirectory = GitRepositoryRegisteredServiceLocator.normalizeParentDirectory(
                repositoryDirectory, properties.getRootDirectory());
            parentDirectory = new File(parentDirectory, service.getFriendlyName());
            FileUtils.mkdir(parentDirectory, true);
            return new File(parentDirectory, fileName);
        });
    }
This is {@link TypeAwareGitRepositoryRegisteredServiceLocator}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/services/locator/TypeAwareGitRepositoryRegisteredServiceLocator.java