code: private MappingNode delegate(Tag tag,
                                   Iterable<Entry<YamlNode, YamlNode>> mapping) {
          List<NodeTuple> value = new LinkedList<>();
          MappingNode node = new MappingNode(tag, value, null);
          representedObjects.put(objectToRepresent, node);
          boolean bestStyle = true;
          for (Map.Entry<?, ?> entry : mapping) {
              Node nodeKey = representData(entry.getKey());
              Node nodeValue = representData(entry.getValue());
              bestStyle = bestStyle(nodeKey, bestStyle);
              bestStyle = bestStyle(nodeValue, bestStyle);
              value.add(new NodeTuple(nodeKey, nodeValue));
          }
  
          if (getDefaultFlowStyle() != FlowStyle.AUTO) {
              node.setFlowStyle(getDefaultFlowStyle().getStyleBoolean());
          } else {
              node.setFlowStyle(bestStyle);
          }
          return node;
      }
docs: Create a {@link MappingNode} from the specified entries and tag.
  
  @param tag     the tag
  @param mapping the entries
  
  @return the mapping node