final Long productId = this.fromApiJsonHelper.extractLongNamed(productIdParamName, element);
SavingsProduct product = null;
if (depositAccountType.isFixedDeposit()) {
product = this.fixedDepositProductRepository.findOne(productId);
if (product == null) { throw new FixedDepositProductNotFoundException(productId); }
} else if (depositAccountType.isRecurringDeposit()) {
product = this.recurringDepositProductRepository.findOne(productId);
if (product == null) { throw new RecurringDepositProductNotFoundException(productId); }
}