@Override
        public void progress(double value) {
            jobState.progress[index] = value;
            if (globalListener != null) {
                globalListener.progress(jobState.getProgress());
            }
        }
An inner JobProgressListener to control the generation process and properly clean up when it's done
jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java