*/
private static ProcessorsFactory processorsFactory(final Mode mode,
final ProcessorsFactory processors,
final UriLocatorFactory uriLocatorFactory,
final Environment environment) {
SimpleProcessorsFactory result = new SimpleProcessorsFactory();
for (ResourcePreProcessor processor : processors.getPreProcessors()) {
configureProcessor(mode, uriLocatorFactory, environment, processor);
result.addPreProcessor(processor);
}
for (ResourcePostProcessor processor : processors.getPostProcessors()) {
configureProcessor(mode, uriLocatorFactory, environment, processor);
result.addPostProcessor(processor);
}
return result;
}