FORGE-1060: Added a two-level DTO creator for the REST plugin