} catch (Exception e) {
throw new ServletException("Error while connecting to database",e);
}
Contributions contributions = ContributionsUtils.createContibutionHandler(context, connection);
if (null != contributions) {
OnUpload onUpload = new OnUpload(context);
onUpload.setContributions(contributions);
context.setAttribute(UploadServlet.OnUploadedListenerAttributeName, onUpload);
OnUploadedListenerSingleton.configure(onUpload);
} else {
throw new ServletException("Unable to configure onUpload process");
}