try
{
String deliveryMethodBeanId = deliveryMethods[i] + "DeliveryMethod";
DeliveryMethod deliveryMethod = (DeliveryMethod) appContext.getBean(deliveryMethodBeanId, DeliveryMethod.class);
deliveryMethod.deliverReport(reportSchedule, reportOutput);
deliveryLog.setEndTime(new Date());
deliveryLog.setStatus(ReportLog.STATUS_SUCCESS);
}
catch(DeliveryException de)