@Override
    @SuppressWarnings("unchecked")
    public void read(JmeImporter im) throws IOException {
        InputCapsule ic = im.getCapsule(this);
//        owner = (Spatial) ic.readSavable("owner", null);

        List<Light> lights = ic.readSavableArrayList("lights", null);
        listSize = lights.size();

        // NOTE: make sure the array has a length of at least 1
        int arraySize = Math.max(DEFAULT_SIZE, listSize);
        list = new Light[arraySize];
        distToOwner = new float[arraySize];

        for (int i = 0; i < listSize; i++) {
            list[i] = lights.get(i);
        }

        Arrays.fill(distToOwner, Float.NEGATIVE_INFINITY);
    }
Returns an iterator that can be used to iterate over this LightList.

@return an iterator that can be used to iterate over this LightList.
jme3-core/src/main/java/com/jme3/light/LightList.java