void updateKost2Arts()
{
List<Kost2ArtDO> result = hibernateTemplate.find("from Kost2ArtDO t where t.deleted = false order by t.id");
List<Kost2Art> list = new ArrayList<Kost2Art>();
for (Kost2ArtDO kost2ArtDO : result) {
Kost2ArtImpl art = new Kost2ArtImpl(kost2ArtDO);
list.add(art);
}
// This method must not be synchronized because it works with a new copy of list.
this.allKost2Arts = list;
}