You mention attributes in this example but it's not clear how to use it:
// If using attribute mapping, pass an array of record types
// rather than layout instances
Could you clarify specifically using delimited attributes what this might look like?