}
public void process(Resource resource, Request request, Response response) {
log.trace("process");
try {
SchedulingOutboxResource outbox = (SchedulingOutboxResource) resource;
ByteArrayOutputStream bout = new ByteArrayOutputStream();
IOUtils.copy(request.getInputStream(), bout);
String iCalText = bout.toString("UTF-8");
log.trace(iCalText);
List<SchedulingResponseItem> respItems = outbox.queryFreeBusy(iCalText);
String xml = schedulingHelper.generateXml(respItems);
response.setStatus(Response.Status.SC_OK);
response.setDateHeader(new Date());