private static ResourceLoader defaultResourceLoader(LessOptions options) {
ResourceLoader resourceLoader = new ChainedResourceLoader(
new FilesystemResourceLoader(), new ClasspathResourceLoader(
LessEngine.class.getClassLoader()),
new JNDIResourceLoader(), new HTTPResourceLoader());
if (options.isCss()) {
return new CssProcessingResourceLoader(resourceLoader);
}
resourceLoader = new UnixNewlinesResourceLoader(resourceLoader);
return resourceLoader;