*/
@Override
public void process(final Resource resource, final Reader reader, final Writer writer)
throws IOException {
final String content = IOUtils.toString(reader);
final AbstractLinter linter = enginePool.getObject();
try {
// TODO investigate why linter fails when trying to reuse the same instance twice
linter.setOptions(getOptions()).validate(content);
} catch (final LinterException e) {
onLinterException(e, resource);
} catch (final WroRuntimeException e) {
onException(e);
final String resourceUri = resource == null ? StringUtils.EMPTY : "[" + resource.getUri() + "]";