Update ThreadEntity.java