build up java model