in compilers/rhino/src/main/java/org/apache/commons/jci2/compiler/rhino/RhinoJavaCompiler.java [236:251]
private Scriptable evaluate( final Context pContext, final String pSourceName) throws JavaScriptException, IOException {
if (!reader.isAvailable(pSourceName)) {
throw new FileNotFoundException("File " + pSourceName + " not found");
}
final Scriptable target = pContext.newObject(scope);
final byte[] sourceBytes = reader.getBytes(pSourceName);
final Reader reader = new InputStreamReader(new ByteArrayInputStream(sourceBytes));
pContext.evaluateReader(target, reader, getName(pSourceName), 1, null);
return target;
}