Plone5

Fixed the build for plone.app.contenttypes:
 - http://jenkins.ploneintranet.net/job/Plone%20Intranet%20Documentviewer/31/
I can see that you did not put the imports in this location, but could you still move them up the the beginning of the method?