code: public void addOrderedChildResourceTypes(PathAddress resourceAddress, Resource resource) {
          Set<String> orderedChildTypes = resource.getOrderedChildTypes();
          if (orderedChildTypes.size() > 0) {
              orderedChildren.put(resourceAddress, resource.getOrderedChildTypes());
          }
      }
docs: If the resource has ordered child types, those child types will be stored in the attachment. If there are no
  ordered child types, this method is a no-op.
  
  @param resourceAddress the address of the resource
  @param resource the resource which may or may not have ordered children.