Here you can find the source of convertArray(Bindings from)
private static BasicDBList convertArray(Bindings from)
//package com.java2s; // it under the terms of the GNU General Public License as published by import javax.script.Bindings; import com.mongodb.BasicDBList; public class Main { private static BasicDBList convertArray(Bindings from) { BasicDBList list = new BasicDBList(); for (int i = 0; i < from.size(); i++) { list.add(from.get(String.valueOf(i))); }/*from w w w . j ava 2s . c o m*/ return list; } }