public File convert(URL resource) throws IOException {
LessCompiler lessCompiler = new LessCompiler();
try {
final File compiled = File.createTempFile("compiled", ".css");
lessCompiler.compile(new File(resource.toURI()), compiled);
return compiled;
} catch (LessException e) {
throw new IOException("specified less stylesheet could not be compiled to css", e);
} catch (URISyntaxException e) {
throw new IOException("could not convert resource to file", e);