this.roles = roles;
}
@Override
public Widget asWidget() {
MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
for (Principal principal : principals.get(type)) {
oracle.add(principal.getName());
}
final Form<RoleAssignment> form = new Form<RoleAssignment>(RoleAssignment.class);
String title = type == GROUP ? Console.CONSTANTS.common_label_group() : Console.CONSTANTS.common_label_user();
final PrincipalFormItem principalItem = new PrincipalFormItem(type, "principal", title);