in src/main/java/org/apache/sling/scripting/javascript/internal/RhinoJavaScriptEngineFactory.java [197:211]
public Scriptable getScope() {
Scriptable scope = null;
readLock.lock();
try {
if (active) {
scope = getRootScope();
} else {
log.warn("getScope() called, but this component is not active.");
}
} finally {
readLock.unlock();
}
return scope;
}