ExceptionType e = Ows20Factory.eINSTANCE.createExceptionType();
e.setExceptionCode("testCode");
e.setLocator("testLocator");
e.setExceptionText("testText");
ExceptionReportType report = Ows20Factory.eINSTANCE.createExceptionReportType();
report.setVersion("2.0");
report.getException().add(e);
Encoder encoder = new Encoder(new OWSConfiguration());
encoder.setIndenting(true);
encoder.setIndentSize(2);