String uri = request.getRequestURI();
try {
logger.debug("lessifying: {}", uri);
LessCompiler less = new LessCompiler();
String content = IOUtils.toString(reader);
writer.write(less.compile(content));
} catch (LessException ex) {
throw new LessRuntimeException(LessCssError.of(
uri, ex.getCause()), ex.getCause());
} finally {
// Rhino throws an exception when trying to exit twice. Make sure we don't