}
else
{
if (identifier != null)
{
StatSubscriptionViewBean statViewBean = new StatSubscriptionViewBean();
List<Integer> tmpFreqs = new ArrayList<Integer>();
tmpFreqs.addAll(freqs);
statViewBean.setFreqs(tmpFreqs);
statViewBean.setObject(dso);
statViewBean.setObjectName(objectName);
statViewBean.setId(identifier);
statViewBean.setType(type);
result.add(statViewBean);
}
freqs.clear();
freqs.add(statSub.getFreq());
type = currDSO.getType();
identifier = statSub.getUid();
objectName = currDSO.getName();
dso = currDSO;
}
}
if (identifier != null)
{
StatSubscriptionViewBean statViewBean = new StatSubscriptionViewBean();
statViewBean.setFreqs(freqs);
statViewBean.setObject(dso);
statViewBean.setObjectName(objectName);
statViewBean.setId(identifier);
statViewBean.setType(type);
result.add(statViewBean);
}
return result;
}