// Authorization matches, grab the request
MerchantCalculationCallback callback = (MerchantCalculationCallback) Unmarshaller.unmarshal(MerchantCalculationCallback.class, _request.getReader());
MerchantCalculationResults results = HandlerFactory.getCalculationHandler().performCalculation(callback);
_response.addHeader("Content-Type", "application/xml");
_response.addHeader("Accepts", "application/xml");
results.marshal(_response.getWriter());
_response.setStatus(HttpStatus.SC_OK);
} catch (IOException e) {
if (LOG.isErrorEnabled()) {
LOG.error("IOException processing Google Callback: " + e.getLocalizedMessage(), e);
}