core + JavaFX - change processing to background thread