@Override
    public void onStopPartitions(Set<TopicIdPartition> partitions) {
        withClassLoader(() -> {
            delegate.onStopPartitions(partitions);
            return null;
        });
    }
A wrapper class of {@link RemoteLogMetadataManager} that sets the context class loader when calling the respective
methods.
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/ClassLoaderAwareRemoteLogMetadataManager.java