/**
* Class for transforming a BatchExecution command.
*/
class BatchExecutionTransformer extends CommandTransformer {
public GenericCommand<?> transform(CommandTranslator cmdTrans, Object o , Unmarshaller unmarshaller) {
BatchExecutionCommand be = (BatchExecutionCommand)o;
List<GenericCommand<?>> xmlCmds = be.getCommands();
for (ListIterator<GenericCommand<?>> i = xmlCmds.listIterator(); i.hasNext();) {
GenericCommand<?> cmd = i.next();
CommandTransformer ct = cmdTrans.getCommandTransformer(cmd.getClass());
if (ct != null) {
i.set(ct.transform(cmdTrans, cmd, unmarshaller));