class MoneyUtils {

    public static BigDecimal getGrossAmount(final BigDecimal money, final BigDecimal taxRate, final boolean taxIncluded) {
        if (money == null) {
            return Total.ZERO;
        }
        if (taxIncluded) {
            // taxes included so this is gross
            return money;
        }
        return money.add(getTaxAmount(money, taxRate, taxIncluded));
    }

    private  MoneyUtils();

}