// Eventually open pers db too so profile is available
TMLUserProfile profile = _context.getprofile();
if (profile != null && !profile.getprofile().getDatabase().isSessionOpen()) {
WGDatabase persDB = profile.getprofile().getDatabase();
persDB.openSession();
persDB.getSessionContext().setTask(taskDescr);
}
RhinoContextAction contextAction = new RhinoContextAction(_context, _function, _overrideFunctionScope, _params);
ExpressionResult result = (ExpressionResult) ContextFactory.getGlobal().call(contextAction);