* Hack for now to work around a problem with the JRuby script engine
*/
protected ScriptEngine getScriptEngineByExtension(String scriptExtn) {
ScriptEngineManager scriptEngineManager = new ScriptEngineManager();
if ("rb".equals(scriptExtn)) {
return new TuscanyJRubyScriptEngine();
} else {
if ("py".equals(scriptExtn)) {
pythonCachedir();
}
return scriptEngineManager.getEngineByExtension(scriptExtn);