Here you can find the source of unwrap(final Object source)
public static Object unwrap(final Object source)
//package com.java2s; //License from project: Open Source License import jdk.nashorn.api.scripting.ScriptObjectMirror; import jdk.nashorn.api.scripting.ScriptUtils; public class Main { public static Object unwrap(final Object source) { if (source instanceof ScriptObjectMirror) { return ScriptUtils.unwrap(source); }// ww w. j a v a 2 s . c o m return source; } }