}
public void marshal(Object object,
HierarchicalStreamWriter writer,
MarshallingContext context) {
BatchExecutionCommandImpl cmds = (BatchExecutionCommandImpl) object;
if ( cmds.getLookup() != null ) {
writer.startNode( "lookup" );
writer.setValue( cmds.getLookup() );
writer.endNode();
}
List<GenericCommand< ? >> list = cmds.getCommands();
for ( GenericCommand cmd : list ) {
writeItem( new CommandsObjectContainer( cmd ),
context,
writer );