Fixed issue with head includes not working correctly for container
elements which were migrated from the schema based formatter
configuration mechanism to the new one.
Improved java doc generation for Java 7.
Changed configuration order to resolve issues with gradle version 1.11.