Fxml automatic controller generation

For a JavaFX application, is it possible to upload the fxml files and get the basic controllers generated automaticaly ?

Repl link:

code snippet