Using JavaFX, is there a way I can prevent a Node in the GUI tree from obtaining a reference to its parent node? Given this structure for example
AnchorPane > BorderPane > Pane
how can I be sure the last Pane won't be able to access it's parent BorderPane by calling .getParent()?
I need this because I'm loading "Pane" from untrusted code, and don't want it to mess with the main window components that contains it.