uploadWorker = new UploadWorker(settings);
uploadWorker.setDesignDocument(couchDd);
uploadWorker.setMediaDir(repositoryDir);
uploadWorker.setMailNotification(mailNotification);
uploadWorker.addConversionPlugin( new MultimediaFileConverter(props) );
uploadWorker.addConversionPlugin( new GpxFileConverter() );
uploadWorker.start();
} catch (Exception e) {
logger.error("Error starting upload worker",e);
throw new ServletException("Error starting upload worker",e);
}