debitedAccount.setBalance(debitedAccount.getBalance().subtract(amount));
creditedAccount.setBalance(creditedAccount.getBalance().add(amount));
DateTime now = now();
OperationStatusRef status = operationStatusDao.findOne(OperationStatus.RESOLVED);
OperationTypeRef type = operationTypeDao.findOne(OperationType.TRANSFER);
Operation debitOperation = newOperation().withName("transfert -" + amount).withAccount(debitedAccount).withAmount(amount.negate()).withDate(now).withStatus(status)
.withType(type).build();
Operation creditOperation = newOperation().withName("transfert +" + amount).withAccount(creditedAccount).withAmount(amount).withDate(now).withStatus(status).withType(type)