EngineConfig config = getConfig( );
	private void setupScriptScope( )	{		EngineConfig config = getConfig( );		if ( config != null )		{			Context cx = Context.enter( );			try			{				rootScope = cx.initStandardObjects( null, true );				registerBeans( rootScope, config.getConfigMap( ) );				registerBeans( rootScope, config.getScriptObjects( ) );				IStatusHandler handler = config.getStatusHandler( );				if ( handler != null )				{					handler.initialize( );					rootScope.put( "_statusHandle", rootScope, handler );					cx							.evaluateString(									rootScope,									"function writeStatus(msg) { _statusHandle.showStatus(msg); }",									"<inline>", 0, null );				}			}			catch ( Exception ex )			{				rootScope = null;				logger.log(Level.INFO, "Error occurs while initialze script scope", ex);			}			finally			{				Context.exit( );			}		}	}