java: updating against model changes