public S3Object getObject(Long objectId) {
        return this.objectsMetadata.get(objectId);
    }
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