TaskInputOutputContext<?, ?, BSONWritable, BSONWritable> context, // for output
ReduceContext<BSONWritable, BSONWritable, BSONWritable, BSONWritable> reduceContext // for streaming input
)
{
Policy.setPolicy(new MinimalPolicy());
_secManager = new IkanowSecurityManager(context.getConfiguration().getBoolean(InfiniteMongoConfigUtil.IS_ADMIN, false));
_context = context;
_reduceContext = reduceContext;
if (null == _engine) {
_factory = new ScriptEngineManager();