Fixed bug where JavaFX was not initialized
Added way to know which rule was used for
debugging purposes