public void encodeBegin(FacesContext ctx,
UIComponent component) throws IOException {
ResponseWriter writer = ctx.getResponseWriter();
FormBuilderInternal formBuilder = (FormBuilderInternal) component;
formBuilder.initFormBuilder();
HtmlForm form = getHtmlForm(formBuilder);
form.setTransient(true);
for (HtmlUnorderedList palette : formBuilder.getPalettes()) {
palette.setTransient(true);
palette.setId(form.getId() + "palette" + UUID.randomUUID().toString());
}
formBuilder.getFormContent().setTransient(true);
formBuilder.getFormContent().setId(form.getId() + "formContent" + UUID.randomUUID().toString());
Form formModel = formBuilder.getForm();
if (formModel != null) {
List<FormBuilderContainer> components = new ArrayList<>();