final URL location = getClass().getResource(FXML_MAIN);
final FXMLLoader loader = new FXMLLoader();
loader.setLocation(location);
loader.setBuilderFactory(new JavaFXBuilderFactory());
loader.setResources(ResourceBundle.getBundle("ApplicationResources"));
final Parent root = (Parent) loader.load(location.openStream());
// set controller into provider
ControllerProvider.getInstance().setMainController((MainController) loader.getController());
// create scene and display window