private void validateAccount()

in service/src/main/java/org/apache/fineract/cn/interoperation/service/internal/service/InteropService.java [648:663]


    private void validateAccount(@NotNull InteropRequestData request, Account account) {
        validateAccount(account);

        String accountId = account.getIdentifier();

        if (account.getHolders() != null) { // customer account
            ProductInstance product = depositService.findProductInstance(accountId);
            ProductDefinition productDefinition = depositService.findProductDefinition(product.getProductIdentifier());
            if (!Boolean.TRUE.equals(productDefinition.getActive()))
                throw new UnsupportedOperationException("NOSTRO Product Definition is inactive");

            Currency currency = productDefinition.getCurrency();
            if (!currency.getCode().equals(request.getAmount().getCurrency()))
                throw new UnsupportedOperationException();
        }
    }