List<NewsBin> newsBins = oc.query(NewsBin.class);
for (INewsBin newsBin : newsBins) {
oc.activate(newsBin, Integer.MAX_VALUE);
for (NewsReference newsRef : newsBin.getNewsRefs()) {
Query query = oc.query();
query.constrain(News.class);
query.descend("fId").constrain(newsRef.getId()); //$NON-NLS-1$
News news = (News) query.execute().iterator().next();
oc.activate(news, Integer.MAX_VALUE);
String parentIdFieldName = "fParentId"; //$NON-NLS-1$
MigrationHelper.setField(news, parentIdFieldName, newsBin.getId().longValue());
oc.ext().store(news, Integer.MAX_VALUE);
}