triggerDescriptor.getMap().put(TRIGGER_CONTAINER, DEFAULT_TRIGGER_CONTAINER);
parameter.put(TRIGGER_DESCRIPTIONS, new ArrayValue(new Value[] { triggerDescriptor }));
parameter.put(ERRORS_PROCESSOR, DEFAULT_ERROR_RENDERER);
parameter.put(HANDLER, ProcessorManager.getInstance().process(ProcessorManager.URL, Constants.DEFAULT_FORM_HANDLER, context));
parameter.put(METHOD, new StringValue(POST));
Result controlComposerResult = super.process(parameter, context);
StringBuffer controlBuffer = new StringBuffer();
Value []generatedControls = ((ArrayValue)controlComposerResult.getResultEntries().get(ControlComposer.GENERATED_CONTROLS)).getArray();
for ( int i = 0; i < generatedControls.length; i++ ) {
Iterator j = ((MapValue)generatedControls[i]).getMap().values().iterator();
StringValue renderedControl = (StringValue)j.next();
buffer.append(renderedControl.toString());
}
StringValue composedControls = new StringValue(buffer.toString());
parameter.put(CONTROLS, composedControls);
StringBuffer triggerBuffer = new StringBuffer();
Value []generatedTriggers = ((ArrayValue)controlComposerResult.getResultEntries().get(ControlComposer.GENERATED_TRIGGERS)).getArray();
for ( int i = 0; i < generatedTriggers.length; i++ ) {
Iterator j = ((MapValue)generatedTriggers[i]).getMap().values().iterator();
StringValue renderedTrigger = (StringValue)j.next();
triggerBuffer.append(renderedTrigger.toString());
}
StringValue composedTriggers= new StringValue(triggerBuffer.toString());
parameter.put(TRIGGERS, composedTriggers);
ProcessorDescriptor processorDescriptor = ProcessorManager.getInstance().getProcessorDescriptor(actionUri);
parameter.put(PROCESSOR_NAME, processorDescriptor.getName());
parameter.put(PROCESSOR_TITLE, ((DefaultMessage)processorDescriptor.getDescription()).getTitle(locale, processorDescriptor.getName()));
parameter.put(PROCESSOR_TEXT, ((DefaultMessage)processorDescriptor.getDescription()).getText(locale, ""));