jav model training