#1257 Extracted doc processing out of Play