final List<String> files = Common.newArrayList(1);
files.addAll(dependencies);
files.addAll(filesToParse);
Common.trimList(files);
final WinkParser wp = new WinkParser();
wp.parse(files);
// wp.print();
try {
ScriptableObject.defineClass(thisObj, WinkJsModel.class);
final WinkJsModel winkJsModel = (WinkJsModel) cx.newObject(thisObj, "WinkJsModel");
winkJsModel.setCx(cx);
winkJsModel.setGlobalScope(wp.getGlobalScope());
// ScriptableObject.putProperty(thisObj, "jsModel",
// Context.javaToJS(winkJsModel, thisObj));
return winkJsModel;
} catch (final IllegalAccessException e) {
throw new WinkBuildException(e);