public void setReflectionScene(final Spatial reflectionScene) {

        final Spatial currentScene = getReflectionScene();

        if (reflectionView != null) {
            reflectionView.detachScene(currentScene == null? rootScene : currentScene);
        }

        this.reflectionScene = reflectionScene;

        if (reflectionView != null) {
            reflectionView.attachScene(reflectionScene == null? rootScene : reflectionScene);
        }
    }
Sets the scene to render in the reflection map.

@param reflectionScene the refraction scene.
jme3-effects/src/main/java/com/jme3/water/WaterFilter.java