- JAXBContext jaxbContext = JAXBContext.newInstance(NetconfState.class);
- Marshaller marshaller = jaxbContext.createMarshaller();
+ JAXB_CONTEXT = JAXBContext.newInstance(NetconfState.class);
+ } catch (JAXBException e) {
+ throw new ExceptionInInitializerError(e);
+ }
+ }
+
+ public Element toXml(final NetconfState monitoringModel) {
+ final DOMResult res;
+ try {
+ final Marshaller marshaller = JAXB_CONTEXT.createMarshaller();