try {
Context cx = contextFactory.enter();
ScriptableObject scope = cx.initStandardObjects();
Reader r = new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream(JSLINT_FILE), UTF8);
cx.evaluateReader(scope, r, "jslint.js", 1, null);
return new JSLint(contextFactory, scope);
} catch (IOException ioe) {
throw new MojoExecutionException("Cant' load jslint.js", ioe);
} finally {
Context.exit();
}