if (cssContent == null) {
// clear any obsolete content
timeToContentMap.clear();
ThreadUnsafeLessCompiler compiler = new ThreadUnsafeLessCompiler();
LessCompiler.Configuration configuration = new LessCompiler.Configuration();
configuration.getSourceMapConfiguration().setLinkSourceMap(false);
try {
LessCompiler.CompilationResult result = compiler.compile(lessSource, configuration);
List<LessCompiler.Problem> warnings = result.getWarnings();
for (LessCompiler.Problem warning : warnings) {
LOG.warn("There is a warning during compilation of '{}' at line {}, character {}. Message: {}",
lessSource.getInputURL(), warning.getLine(), warning.getCharacter(), warning.getMessage());