@Override public Object exec(@SuppressWarnings("rawtypes") List arguments) throws TemplateModelException { ExecutionStatistics.get().begin(NAME); try { if (arguments.size() != 1) { throw new TemplateModelException("Error, method expects one argument (Iterable)"); } return hasContent(arguments.get(0)); } finally { ExecutionStatistics.get().end(NAME); } }
throw new WindupException("Unrecognized type passed to " + getMethodName() + "(): " + arg.getClass().getCanonicalName());
throw new WindupException("Unrecognized type passed to " + getMethodName() + "(): " + arg.getClass().getCanonicalName());
@Override public Object exec(@SuppressWarnings("rawtypes") List arguments) throws TemplateModelException { ExecutionStatistics.get().begin(NAME); try { if (arguments.size() != 1) { throw new TemplateModelException("Error, method expects one argument (Iterable)"); } return hasContent(arguments.get(0)); } finally { ExecutionStatistics.get().end(NAME); } }