default Optional<File> locate(final RegisteredService service) {
        return FILE_EXTENSIONS.stream()
            .map(ext -> determine(service, ext))
            .filter(File::exists)
            .findFirst();
    }
Locate file that is linked to the service.

@param service the service
@return the optional
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/services/locator/GitRepositoryRegisteredServiceLocator.java