public void setLocalAccountDao(ILocalAccountDao accountDao) {
this.accountDao = accountDao;
}
public void validateEditLocalAccount(PersonForm person, MessageContext context) {
if (person.getId() < 0 && accountDao.getPerson(person.getUsername()) != null) {
<BUG>context.addMessage(new MessageBuilder().error().source("username")
.code("username.already.in.use")
.defaultText("This username is already in use").build());</BUG>
}
if (StringUtils.isNotBlank(person.getPassword()) || StringUtils.isNotBlank(person.getConfirmPassword())) {

public void setLocalAccountDao(ILocalAccountDao accountDao) {
this.accountDao = accountDao;
}
public void validateEditLocalAccount(PersonForm person, MessageContext context) {
if (person.getId() < 0 && accountDao.getPerson(person.getUsername()) != null) {
context.addMessage(new MessageBuilder().error().source("username")
.code("username.in.use").build());
}
if (StringUtils.isNotBlank(person.getPassword()) || StringUtils.isNotBlank(person.getConfirmPassword())) {
