code: private void writeInterfaceCriteria(final XMLExtendedStreamWriter writer, final ModelNode subModel, final boolean nested) throws XMLStreamException {
          for (final Property property : subModel.asPropertyList()) {
              if (property.getValue().isDefined()) {
                  writeInterfaceCriteria(writer, property, nested);
              }
          }
      }
docs: Write the criteria elements, extracting the information of the sub-model.
  
  @param writer   the xml stream writer
  @param subModel the interface model
  @param nested   whether it the criteria elements are nested as part of <not /> or <any />
  @throws XMLStreamException