I have the following bit of code:
AtomicReference totalAmount = new AtomicReference<>(new BigDecimal(BigInteger.ZERO, new MathContext(