code: public void launchAddPrincipalDialog(final Principal.Type type) {
          PrincipalDialog dialog = new PrincipalDialog(type, accessControlStore, circuit, this);
          openWindow(type == Principal.Type.USER ? Console.MESSAGES.addUserToRole() :
                  Console.MESSAGES.addGroupToRole(), WINDOW_WIDTH, 250, dialog);
      }
docs: ------------------------------------------------------ rbac methods