Revert "GRAILS-10917 Undid formatting changes"

This reverts commit 7539e726afb45d9dfa5bc7390fa10b0cb1cdd362.
Revert "GRAILS-10917 Fix for returning the correct model when a domain with errors is returned to an HTML renderer"

This reverts commit 1060b536005256ad3f87c0ae9a4fcdf885049cd7.