JAXBContext ctx = JAXBContext.newInstance(getClass());
Marshaller m = ctx.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
m.marshal(this, out);
} catch(JAXBException e) {
ILogService log = RedmineApiPlugin.getLogService(JaxbParser.class);
RedmineApiErrorException exc = new RedmineApiErrorException(Messages.ERRMSG_CONFIGURATION_SERIALIZATION_FAILED, e);
log.error(e, exc.getMessage());
throw exc;
}
}
}