public String balance(Long accountId, Long originId, String transactions, Date operationDate, ModelMap modelMap) {
if (hasText(transactions)) {
Account origin = Account.findAccount(originId);
Account account = Account.findAccount(accountId);
if ((account != null) && (origin != null)) {
UserDetails user = UserDetails.findCurrentUser();
if (account.belongsTo(user) && origin.belongsTo(user)) {
cache.invalidate(user);
accountService.balance(user, account, origin, operationDate, transactions.split("-"));
}
}