* @param actualCount actual number of arguments
* @throws ExpressionException if validation of arguments fails
*/
static void checkArgumentsCount(String functionName, int minCount, int maxCount, int actualCount) throws ExpressionException {
if (actualCount < minCount || actualCount > maxCount) {
throw new ExpressionException(EXCEPTION_LOCALIZER.format(
"invalid-num-args-range",
new Object[]{
functionName,
new Integer(minCount),
new Integer(maxCount),