Is this actually required? Couldn't one just check whether `getFactoryMethod()` returns null (in FreeMarker templates using "??")?