ScriptEngineManager does two key functions. It does discovery of a script engine and stores data in context to allow it to be shared with programs. Data can be stored as key/value pairs and made available for all script engines. They should be considered as global data.
This Core Java tutorial was added on 14/10/2012.