diff --git a/framework/base/src/META-INF/services/javax.script.ScriptEngineFactory b/framework/base/src/META-INF/services/javax.script.ScriptEngineFactory
index 88b36449e5..dea1de85b6 100644
--- a/framework/base/src/META-INF/services/javax.script.ScriptEngineFactory
+++ b/framework/base/src/META-INF/services/javax.script.ScriptEngineFactory
@@ -1 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
bsh.engine.BshScriptEngineFactory
diff --git a/framework/base/src/org/ofbiz/base/util/ScriptHelper.java b/framework/base/src/org/ofbiz/base/util/ScriptHelper.java
new file mode 100644
index 0000000000..92fa8eb3d2
--- /dev/null
+++ b/framework/base/src/org/ofbiz/base/util/ScriptHelper.java
@@ -0,0 +1,166 @@
+/*******************************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *******************************************************************************/
+package org.ofbiz.base.util;
+
+import java.util.List;
+import java.util.Map;
+
+import javax.script.ScriptException;
+
+/**
+ * A script helper object. The OFBiz scripting framework will include an instance of this class in the script's bindings.
+ *
The scripting language will determine how the helper is used. Most languages will access it as a variable:
+ * partyValue = ofbiz.findOne("Party");
+ * while other languages might access it as a native method or function:
+ * partyValue = findOne("Party");
+ */
+public interface ScriptHelper {
+
+ /**
+ * Extracts service IN parameters from inputMap and returns them in a new Map.
+ *
+ * @param serviceName
+ * @param inputMap
+ * @return The matching service parameters
+ * @throws ScriptException
+ */
+ Map createServiceMap(String serviceName, Map inputMap) throws ScriptException;
+
+ /**
+ * Sets the event/service status to error status.
+ *
+ * @param message
+ */
+ void error(String message);
+
+ /**
+ * Evaluates a String and returns the result.
+ *
+ * @param original
+ * @return
+ */
+ String evalString(String original);
+
+ /**
+ * Sets the event/service status to failure status.
+ *
+ * @param message
+ */
+ void failure(String message);
+
+ /**
+ * Returns a List of GenericValues.
+ * @param entityName
+ * @param fields
+ * @return
+ * @throws ScriptException
+ */
+ List