@SuppressWarnings("unchecked") @Override public String process(final String filename, final String source, final Config conf, final ClassLoader loader) throws Exception { Map<String, Object> options = new LinkedHashMap<>(options()); Map<String, Object> predef = (Map<String, Object>) options.remove("predef"); options.remove("excludes"); return engine(V8Engine.class, "global") .execute("jshint.js", source, options(), predef, filename); }