final Configuration configuration = arguments.getConfiguration();
final Each each = EachUtils.parseEach(configuration, arguments, attributeValue);
final IStandardExpression iterVarExpr = each.getIterVar();
final Object iterVarValue = iterVarExpr.execute(configuration, arguments);
final IStandardExpression statusVarExpr = each.getStatusVar();
final Object statusVarValue;
if (statusVarExpr != null) {
statusVarValue = statusVarExpr.execute(configuration, arguments);
} else {
statusVarValue = null;
}
final IStandardExpression iterableExpr = each.getIterable();
final Object iteratedValue = iterableExpr.execute(configuration, arguments);
final String iterVarName = (iterVarValue == null? null : iterVarValue.toString());
if (StringUtils.isEmptyOrWhitespace(iterVarName)) {
throw new TemplateProcessingException(
"Iteration variable name expression evaluated as null: \"" + iterVarExpr + "\"");