* {@link ResourcePreProcessor} to use as a {@link ResourceProcessor}.
* @return instance of {@link ResourceProcessor}.
*/
public static ResourcePostProcessor newResourceProcessor(final Resource resource,
final ResourcePreProcessor preProcessor) {
return new ResourcePostProcessor() {
public void process(final Reader reader, final Writer writer)
throws IOException {
preProcessor.process(resource, reader, writer);
}
};