169170171172173174175176
XMLStreamWriter writer = outputFactory.createXMLStreamWriter(os); write(model, writer); writer.flush(); writer.close(); } catch (XMLStreamException e) { throw new ContributionWriteException(e); } }
190191192193194195196197198199
policyProcessor.writePolicies(bean), new XAttr(null, attrs)); writeEnd(writer); } catch (Exception e) { ContributionWriteException ce = new ContributionWriteException(e); error("ContributionWriteException", writer, ce); throw ce; } }
229230231232233234235236237238
XMLStreamWriter writer = outputFactory.createXMLStreamWriter(os); write(model, writer); writer.flush(); writer.close(); } catch (XMLStreamException e) { ContributionWriteException cw = new ContributionWriteException(e); error("ContributionWriteException", outputFactory, cw); throw cw; } }
246247248249250251252253254255
9192939495969798
if (model.getFactory() != null) { writer.writeAttribute("factory", model.getFactory()); } writer.writeEndElement(); } catch (XMLStreamException e) { throw new ContributionWriteException(e); } }
424425426427428429430431
} writeEndDocument(writer); } catch (XMLStreamException e) { throw new ContributionWriteException(e); } }
210211212213214215216217
} writer.writeEndElement(); } catch (XMLStreamException e) { throw new ContributionWriteException(e); } }