msg.setBody(entries.toArray(new Entry[entries.size()]));
}
} else if (status == 404) {
if ( provider.supportsFeedEntries()) {
msg.setFaultBody(new NotFoundException());
} else {
msg.setFaultBody(new org.apache.tuscany.sca.data.collection.NotFoundException());
}
} else {
msg.setFaultBody(new ServiceRuntimeException("HTTP status code: " + status));