private void addMetadataToProcessor(Map<String, Node> metadataMap, LoadOperationProcessor processor) {
        for (Map.Entry<String, Node> entry : metadataMap.entrySet()) {
            processor.accept(new LoadOperation.PutMetadata(Version.UNKNOWN, entry.getKey(), entry.getValue()));
        }
    }
Assembles the model and returns the validated result.

@return Returns the validated result that optionally contains a Model
 and validation events.
smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java