@Override
public void encodeBegin(FacesContext ctx,
UIComponent component) throws IOException {
FormFiller formFiller = (FormFiller) component;
String uuid = UUID.randomUUID().toString();
FormFillerAttributesContainer container = new FormFillerAttributesContainer();
container.setFormData(formFiller.getFormData());
container.setWorkflowState(formFiller.getWorkflowState());
container.setConstraintClient(formFiller.getConstraintClient());
container.setMetaDataObject(formFiller.getMetaDataObject());
container.setMetaDataFetcher(formFiller.getMetaDataFetcher());
ModelApplicationBean.getInstance().putFormData(uuid, container);
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
formFiller.getIFrame().setSrc(request.getContextPath() + "/pages/formfiller.xhtml?uuid=" + uuid + "&mode=" + formFiller.getMode());
formFiller.getCallbackButton().setActionExpression(formFiller.getActionExpression());