// check Identities
Identity defaultIdentity = createDefaultIdentity( mailbox );
account.addIdentity( defaultIdentity );
this.userAccountDao.saveIdentities( account );
AddressFolder folder = getApplicationContext().getBean( AddressFolder.class );
folder.setType( AddressFolderType.STANDARD );
folder.setName( "Standard" );
folder.setUserAccount( account );
account.addAddressFolder( folder );
this.userAccountDao.saveAddressFolder( folder );
folder = getApplicationContext().getBean( AddressFolder.class );
folder.setType( AddressFolderType.RECIPIENTS );
folder.setName( "Recipients" );
folder.setUserAccount( account );
account.addAddressFolder( folder );
this.userAccountDao.saveAddressFolder( folder );
return account;
}