this.bundleName = getBundleName();
this.bundle = getResourceBundle(bundleName);
}
FXMLLoader loadSynchronously(final URL resource, ResourceBundle bundle, final String conventionalName) throws IllegalStateException {
final FXMLLoader loader = new FXMLLoader(resource, bundle);
loader.setControllerFactory((Class<?> p) -> Injector.instantiatePresenter(p, this.injectionContext));
try {
loader.load();
} catch (IOException ex) {
throw new IllegalStateException("Cannot load " + conventionalName, ex);
}
return loader;
}