// save
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Module module = form.getUpdatedEntity();
// Workaround the need for having model descriptions here
ModelNode payload = new ModelNode();
payload.get("name").set(module.getName());
payload.get("slot").set(module.getSlot());
presenter.onAddModule(payload);
}
},