if (cfg.group == null || cfg.group.length() < 1) {
System.out.println("User group was not provided, or too short, should be at least 1 character long: " + cfg.group);
System.exit(1);
}
cfg.password = cmdl.getOptionValue("password");
ConfigurationDao cfgDao = getApplicationContext(ctxName).getBean(ConfigurationDao.class);
if (invalidPassword(cfg.password, cfgDao)) {
System.out.print("Please enter password for the user '" + cfg.username + "':");
cfg.password = new BufferedReader(new InputStreamReader(System.in)).readLine();
if (invalidPassword(cfg.password, cfgDao)) {
System.out.println("Password was not provided, or too short, should be at least " + getMinPasswdLength(cfgDao) + " character long.");