Started work on a smarter DocumentFragmentFactory...still buggy though
due to reflection trouble with varargs.