@Override
    public void run() {
        app.enqueue(new Callable<Void>() {

            @Override
            public Void call() throws Exception {
                listener.start();
                return null;
            }
        });
        try {
            Vector3f[] shCoefficients = EnvMapUtils.getSphericalHarmonicsCoefficents(sourceMap);
            EnvMapUtils.prepareShCoefs(shCoefficients);
            store.setShCoeffs(shCoefficients);

        } catch (Exception e) {
            e.printStackTrace();
        }
        app.enqueue(new Callable<Void>() {

            @Override
            @SuppressWarnings("unchecked")
            public Void call() throws Exception {
                listener.done(6);
                return null;
            }
        });
    }
Fills all the generation parameters

@param sourceMap the source cube map
                 {@link com.jme3.environment.util.EnvMapUtils.FixSeamsMethod}
@param store     The cube map to store the result in.
jme3-core/src/main/java/com/jme3/environment/generation/IrradianceSphericalHarmonicsGenerator.java