@Override
public void process(final Resource resource, final Reader reader, final Writer writer)
throws IOException {
try {
final LessSource lessSource = new RelativeAwareLessSource(resource, IOUtils.toString(reader), locatorFactory);
final CompilationResult result = compiler.compile(lessSource);
logWarnings(result);
writer.write(result.getCss());
} catch (final Less4jException e) {
LOG.error("Failed to compile less resource: {}.", resource);