}
JavaScriptObject[] componentsj = JSOHelper.toArray(nativeArray);
RefDataClass[] objects = new RefDataClass[componentsj.length];
for (int i = 0; i < componentsj.length; i++) {
JavaScriptObject componentJS = componentsj[i];
RefDataClass obj = RefDataClass.getRef(componentJS);
objects[i] = obj;
}
return objects;
}