/**
   * @param parent
   * @param modal
   * @param title
   * @param miscDAOFactory
   * @param miscFactory
   * @return
   */
  public static UserAccount showDialog(
      Frame parent,
      boolean modal,
      String title,
      MiscDAOFactory miscDAOFactory,
      MiscFactory miscFactory) {
    CreateUserAccountDialog dialog =
        new CreateUserAccountDialog(parent, modal, miscDAOFactory, miscFactory);

    dialog.setTitle(title);
    dialog.setVisible(true);

    return dialog.getUserAccount();
  }
  /** @param args */
  public static void main(String[] args) {

    Injector injector =
        Guice.createInjector(
            new VarsJpaModule("vars-jpa-annotation", "vars-jpa-knowledgebase", "vars-jpa-misc"));
    ToolBelt toolBelt = injector.getInstance(ToolBelt.class);
    UserAccount admin =
        CreateUserAccountDialog.showDialog(
            null,
            true,
            "VARS - Create Administrator Account",
            toolBelt.getMiscDAOFactory(),
            toolBelt.getMiscFactory());
  }