code: private void persistDecorator(XMLExtendedStreamWriter writer, ModelNode model) throws XMLStreamException {
         if (shouldWriteDecoratorAndElements(model)) {
             writer.writeStartElement(decoratorElement);
             persistChildren(writer, model);
             writer.writeEndElement();
         }
      }
docs: persist decorator and than continue to children without touching the model