private void validateAccount()

in service/src/main/java/org/apache/fineract/cn/deposit/service/internal/service/TransactionService.java [309:314]


    private void validateAccount(Account account) {
        if (account == null)
            throw new UnsupportedOperationException("Account not found");
        if (!account.getState().equals(Account.State.OPEN.name()))
            throw new UnsupportedOperationException("Account is in state " + account.getState());
    }