});
scopeItem = new MultiselectListBoxItem("scope", Console.CONSTANTS.administration_scope(), 3);
includeAllItem = new CheckBoxItem("includeAll", Console.CONSTANTS.administration_include_all());
form.setFields(nameItem, baseRoleItem, typeItem, scopeItem, includeAllItem);
form.setEnabled(false);
form.setToolsCallback(new FormCallback() {
@Override
public void onSave(final Map changeset) {
Role edited = form.getEditedEntity();
if (edited != null) {
Role newScopedRole = new Role(nameItem.getValue(), nameItem.getValue(), baseRoleItem.getValue(),