@Override
public void onClick(ClickEvent event) {
WorkmanagerPool pool = form.getUpdatedEntity();
pool.setShortRunning(type.getValue().equals("short-running"));
FormValidation validation = form.validate();
if(validation.hasErrors())
return;
presenter.createNewPool(managerName, pool);
}