Allow for a custom document manager in processForm()