List<org.apache.cxf.management.web.logging.LogRecord> list =
new ArrayList<org.apache.cxf.management.web.logging.LogRecord>();
for (Element element : el.getElements()) {
org.apache.cxf.management.web.logging.LogRecord record =
new org.apache.cxf.management.web.logging.LogRecord();
Element loggerName = element.getFirstChild(
new QName("http://cxf.apache.org/log", "loggerName", "log"));
if (loggerName != null) {
record.setLoggerName(loggerName.getText());
}
Element throwable = element.getFirstChild(
new QName("http://cxf.apache.org/log", "throwable", "log"));
if (throwable != null) {
record.setThrowable(throwable.getText());
}
list.add(record);
}
records.setLogRecords(list);
return records;