if (count <= 0) throw new AssertionError("No failures info, which are required");
Thread.sleep(sleep);
sleep = 1000;
TFailuresInfo failures = instance.getFailures();
if (!(failures != null && failures.getCount() == 1)) continue;
ProcessInfoDocument m = _management.getProcessInfo(_processId);
if (!m.getProcessInfo().isSetInstanceSummary()) continue;
failures = m.getProcessInfo().getInstanceSummary().getFailures();
if (!(failures != null && failures.getCount() == 1)) continue;
break;
}
// Look for individual activities inside the process instance.
ArrayList<TActivityInfo> recoveries = getRecoveriesInScope(instance, null, null);