@Override
public void start(Stage primaryStage) {
try {
ApplicationConfiguration appConfiguration = new DefaultApplicationConfiguration();
Fxml layout = appConfiguration.getLayout();
Parent rootPane = (Parent) FXMLLoader.load(layout.getFxmlUrl());
AnchorPane anchor;
TitledPane title = null;
if (rootPane instanceof AnchorPane){
anchor = (AnchorPane) rootPane;
} else if (rootPane instanceof TitledPane){
title = (TitledPane) rootPane;
anchor = (AnchorPane) title.getContent();
} else {
throw new IllegalStateException("could not handle " + rootPane.getClass().getName());
}
//TitledPane
// This line to resolve keys against Bundle.properties
//ResourceBundle i18nBundle = ResourceBundle.getBundle("helloi18n.Bundle", new Locale("en", "US"));
// This line to resolve keys against Bundle_fr_FR.properties