final LoginInfo login = new LoginInfo("localhost", port, user, password);
if (store.exists(login.getHost(), login.getPort())) {
//just let the user know that the user has chosen to overwrite the login information. This is non-interactive, on purpose
final Object[] params = new Object[] {login.getHost(), ""+login.getPort()};
final String msg = getLocalizedString("OverwriteLoginMsgCreateDomain", params);
logger.printMessage(msg);
}
store.store(login, true);
final Object[] params = new String[] {user, dn, store.getName()};
final String msg = getLocalizedString("LoginInfoStoredCreateDomain", params);
logger.printMessage(msg);