only use defaultFactory when supported
Prepare collective.documentviewer 2.2.2b1.