```case DRAWDOWN: if (arguments.size() != 2) ...
# troubleshooting
d
Copy code
case DRAWDOWN:
  if (arguments.size() != 2)
    throw new IllegalArgumentException();
  return new DrawdownAggregationFunction(arguments.get(0), arguments.get(1));