*/
public static void injectStandardBindings(ScriptEngine engine, StandardBindings bindings,
boolean deleteExistingBindings, ScriptSourceProvider... scriptSourceProviders) {
bindings.preInject(engine);
Bindings engineBindings = deleteExistingBindings ? engine.createBindings() : engine
.getBindings(ScriptContext.ENGINE_SCOPE);
for (Map.Entry<String, Object> entry : bindings.entrySet()) {
engineBindings.put(entry.getKey(), entry.getValue());
}
if (scriptSourceProviders != null) {
//first figure out which initializer to use with this script engine
String language = (String) engine.getFactory().getParameter(ScriptEngine.NAME);