/** * Creates a WPS ExceptionReport, specifying the version and the language. * * @param version the ExceptionReport version * @param language the ExceptionReport language */ public ExceptionHandler(String version, String language) { exceptionReportDoc = ExceptionReportDocument.Factory.newInstance(); exceptionReport = exceptionReportDoc.addNewExceptionReport(); exceptionReport.setVersion(version); // lang attribute is optional if (language != null) { exceptionReport.setLang(language); } }