if (this.usedScriptEngines != null) {
Iterator iterator = this.usedScriptEngines.values().iterator();
while (iterator.hasNext()) {
ScriptEngine engine = (ScriptEngine) iterator.next();
if (engine != null) {
engine.dispose();
}
}
}
this.logger.removeAllAppenders();