relocate generation instance from TableDocument to Entity. Now Entity is the base generation object