public Optional<ObjectReader> objectReader(long objectId) {
        S3Object object = getObject(objectId);
        if (object == null) {
            return Optional.empty();
        }
        return Optional.of(ObjectReader.reader(new S3ObjectMetadata(objectId, object.getObjectSize(), object.getAttributes()), objectStorage));
    }
Generate RemoveS3ObjectRecord for the deleted S3Objects.

@param deletedObjectIds the deleted S3Objects' ids
@return the result of the generation, contains the records which should be applied to the raft.
metadata/src/main/java/org/apache/kafka/controller/stream/S3ObjectControlManager.java