in service/src/main/java/org/apache/fineract/cn/payroll/service/internal/service/adaptor/AccountingAdaptor.java [60:70]
public Optional<Account> findAccount(final String accountIdentifier) {
try {
final Account account = this.ledgerManager.findAccount(accountIdentifier);
if (account.getState().equals(Account.State.OPEN.name())) {
return Optional.of(account);
}
} catch (final AccountNotFoundException anfex) {
this.logger.warn("Account {} not found.", accountIdentifier);
}
return Optional.empty();
}