// fd = table.getFieldDescriptor("ServiceType");
// fd.setAttribute("hidden", new Boolean(true));
fd = type.getFieldDescriptor("Name");
fd.setDisplayName(GlobalContext.getLocalizedMessage("role.name.displayname", "Role Name (id)"));
fd.setValidators(new Validator[]{new NotNullValid()}); //it's mandatory
fd = type.getFieldDescriptor("DisplayName");
fd.setDisplayName(GlobalContext.getLocalizedMessage("role.displayname.displayname", "Display Name"));
fd = type.getFieldDescriptor("DefaultEndpoint");