private static ScriptEngine getScriptEngine(Alert alert, PrintWriter output, Config config, String language,
Set<String> domainPackagesNames) throws ScriptException, IOException, InterruptedException {
Subject user = config.subject;
LocalClient client = new LocalClient(user);
StandardBindings bindings = new StandardBindings(output, client);
bindings.put("alert", alert);
ScriptEngine engine = takeEngine(bindings, language, domainPackagesNames);