116117118119120121122123124125126
} // create data Data data = Data.EMPTY; try { data = builder.build(); } catch (final Exception e) { addWarning(e.getLocalizedMessage()); } return data;
126127128129130131132133134135136
LOG.warn(e.getLocalizedMessage(), e); } finally { Closeables.closeAndConvert(inputStream, true); } return hasErrors ? Data.EMPTY : builder.build(); } /** * Reads the <em>UAS data</em> in XML format from the given string. *