Finishing mapping and generating getter/setter on document