just finished drafting a gson context for working with the new document definitions ... completely untested but I want to get this checked in