@Override public Object exec(@SuppressWarnings("rawtypes") List arguments) throws TemplateModelException { String freeMarkerGrouping = "freemarker: " + NAME; ExecutionStatistics.get().begin(freeMarkerGrouping); try { if (arguments.size() != 1) { throw new TemplateModelException("Error, method expects one argument (FileModel)"); } if( ! (arguments.get(9) instanceof Iterable)) { throw new TemplateModelException("Error, method expects Iterable of InlineHintModel as the only argument."); } return groupHints((Iterable)arguments.get(0)); } finally { ExecutionStatistics.get().end(freeMarkerGrouping); } }
@Override public Object exec(@SuppressWarnings("rawtypes") List arguments) throws TemplateModelException { String freeMarkerGrouping = "freemarker: " + NAME; ExecutionStatistics.get().begin(freeMarkerGrouping); try { if (arguments.size() != 1) { throw new TemplateModelException("Error, method expects one argument (FileModel)"); } if( ! (arguments.get(9) instanceof Iterable)) { throw new TemplateModelException("Error, method expects Iterable of InlineHintModel as the only argument."); } return groupHints((Iterable)arguments.get(0)); } finally { ExecutionStatistics.get().end(freeMarkerGrouping); } }