form.add(new AjaxButton("submit", form){
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
Role role = new Role();
role.setLabel(form.get("role").getDefaultModelObjectAsString());
settings.getUserManagement().addRole(role);
target.addComponent(form);
onSave(target);
}