uploadListener.setCouchDb(couchDb);
servletContext.setAttribute(UploadServlet.OnUploadedListenerAttributeName, uploadListener);
OnUploadedListenerSingleton.configure(uploadListener);
try {
uploadWorker = new UploadWorker();
uploadWorker.setDesignDocument(couchDd);
uploadWorker.setMediaDir(repositoryDir);
uploadWorker.setMailNotification(mailNotification);
uploadWorker.addConversionPlugin( new MultimediaFileConverter() );
uploadWorker.addConversionPlugin( new GpxFileConverter() );