@Override
    public RegisteredService findServiceById(final long id) {
        val buckets = cloudStorage.list(Storage.BucketListOption.prefix(BUCKET_PREFIX));
        for (val bucket : buckets.iterateAll()) {
            LOGGER.debug("Locating service with id [{}] in bucket [{}]", id, bucket.getName());
            for (val blob : cloudStorage.list(bucket.getName()).iterateAll()) {
                if (blob.getName().contains(String.valueOf(id))) {
                    val content = blob.getContent();
                    val body = new String(content, StandardCharsets.UTF_8);
                    return serializer.from(body);
                }
            }
        }
        return null;
    }
This is {@link GoogleCloudStorageServiceRegistry}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-gcp-storage-service-registry/src/main/java/org/apereo/cas/services/GoogleCloudStorageServiceRegistry.java