public CompilationResult compile(LessSource source, Configuration options) throws Less4jException {
if (options==null)
options = new Configuration();
problemsHandler = new ProblemsHandler();
astBuilder = new ASTBuilder(problemsHandler);
compiler = new LessToCssCompiler(problemsHandler, options);
CompilationResult compilationResult = doCompile(source, options);
if (problemsHandler.hasErrors()) {
throw new Less4jException(problemsHandler.getErrors(), compilationResult);
}