Here you can find the source of jsToJava(Object obj)
public static Object jsToJava(Object obj)
//package com.java2s; //License from project: Apache License import org.mozilla.javascript.Wrapper; public class Main { public static Object jsToJava(Object obj) { while (obj instanceof Wrapper) { obj = ((Wrapper) obj).unwrap(); }//from w ww.ja va 2s. c o m return obj; } }