Long count = summary.get(new InstanceSummaryKey(pid, state.toString()));
instances.setCount(count == null ? 0 : count.intValue());
}
private void getInstanceSummaryActivityFailure(TInstanceSummary summary, Map<String, FailedSummaryValue> f, String pid) {
FailedSummaryValue v = f.get(pid);
if (v != null) {
TFailuresInfo failures = summary.addNewFailures();
failures.setDtFailure(toCalendar(v.lastFailed));
failures.setCount(v.count.intValue());
}