Object [] state = new Object[$size];
state[0] = super.saveState(context);
#set($counter = 1)
#foreach($descriptor in $descriptors) 
state[$counter] = ${descriptor.saveStateCode()};
#set($counter = $counter + 1)
#end
return state;