executor.execute( new Runnable() {
@Override
public void run() {
final AbstractUpdater bean = beanFactory.getBean(connector.getUpdaterClass());
FileUploadSupport handler = (FileUploadSupport) bean;
try {
handler.importFile(apiKey, f);
}
catch (Exception e) {
e.printStackTrace();
notificationsService.addExceptionNotification(guestId, Notification.Type.ERROR, "There was a problem importing your " + connector.prettyName() + " data.<br>" +
"Please check the type and format of your file.", ExceptionUtils.getStackTrace(e));