/** * Runs all the processors on an item. If cachingAllowed is true it will * only run the processors where the result is allowed to be cached. * * @param item The DD4T Item * @throws org.dd4t.core.exceptions.ProcessorException */ public void executeProcessors(Item item, RunPhase runPhase, RequestContext context) throws ProcessorException { if (item != null) { for (Processor processor : getProcessors()) { if (runPhase == processor.getRunPhase() || processor.getRunPhase() == RunPhase.BOTH) { this.execute(processor, item, context); } } } }