// Dispose also disposable form items (such as file uploads that needs to
// cleanup temporary files)
Map<String, FormItem> formItems = FormBasicController.this.flc.getFormComponents();
for (FormItem formItem : formItems.values()) {
if (formItem instanceof Disposable) {
Disposable disposableFormItem = (Disposable) formItem;
disposableFormItem.dispose();
}
}
}
}, getUserActivityLogger());
}