class LuceneAspspRepository implements AspspRepository {

    @Override
    public List<Aspsp> findByIban(String iban, String after, int size) {
        String bankCode;
        try {
            bankCode = Iban.valueOf(iban).getBankCode();
        } catch (Iban4jException e) {
            // iban4j exception not used as the cause because the message might contain account number
            throw new IbanException("Invalid iban");
        }
        if (bankCode == null) {
            throw new IbanException("Failed to extract the bank code from the iban");
        }
        return findByBankCode(bankCode, after, size);
    }

    public  LuceneAspspRepository(Directory directory);

}