@Override public String render(Type argumentType, List args, SessionFactoryImplementor factory) throws QueryException { if ( args.size() > 0 ) { throw new QueryException( "function takes no arguments: " + getName() ); } return renderedString == null ? super.render( argumentType, args, factory ) : renderedString; } }