FormEncodingFactory.register(FormEncodingClientFactory.getEncoder(), FormEncodingClientFactory.getDecoder());
try {
final String innerJson = formInfo.getElement().getInnerHTML();
formInfo.getElement().setInnerHTML("");
formInfo.getElement().getStyle().setHeight(1, Unit.PX);
eventBus.addHandler(RepresentationFactoryPopulatedEvent.TYPE, new RepresentationFactoryPopulatedHandler() {
@Override
public void onEvent(RepresentationFactoryPopulatedEvent event) {
try {
JsonLoadInput input = JsonLoadInput.parse(innerJson);
if (input != null && input.getForm() != null) {