class upper_env_item_seq extends uvm_sequence #(lower_env_item);
... // Constructor and UVM automation macros
upper_env_item u_item; // Contains an array of lower_env_items
task body();
// Create a upper-level item.
`uvm_create(u_item)
...// Randomize it here with appropriate constraints.
for(int i = 0 ; i< u_item.num_items; i++)
`uvm_send(u_item.item)
endtask : body
endclass: upper_env_item_seq