Selecting a part of a terrain using a square selector

Thanks. I found your answer to another question quite helpful to my current question:
https://hub.jmonkeyengine.org/t/howto-obtain-getting-rootnode-inside-appstate-or-game-state/16423
I passed the instance of Application to my own classes and cast the instance to SimpleApplication, then everything seems to be accessible in my own classes.