needPassword = config.getBooleanProperty(needPasswordProp, DEFAULT_NEEDPASSWORD);
if (dbpw == null && needPassword) {
int retry = 0;
Password pw = new Password();
if (pw.echoPassword()) {
System.err.println(Globals.getBrokerResources().
getString(BrokerResources.W_ECHO_PASSWORD));
}
while ((dbpw == null || dbpw.trim().equals("")) && retry < 5) {
System.err.print(br.getString(