Begin recode model to java