/**
* {@inheritDoc }
*/
public void createAccount(Account account) throws EvasionException {
if (account.getPerson() == null || account.getPerson().getId() == null) {
throw new CommonModuleException("person for account is null or not commited");
}
account.getUser().setEmail(account.getPerson().getEmail());
createUser(account.getUser());
LOGGER.debug("Create an account for user: {}", account.getUser().getUsername());