how to write strue1 model use java