If you pass a new document structure into "in" for a referenced type, it will automatically create the referenced type.