Iterable<IServiceInfoProvider> records = new ServiceInfoProviderAdapter(new FlatResourcesAdapter(result.getResources()));
for (IServiceInfoProvider r: records) {
if (!doContinue()) {
break;
}
ServiceInfo serviceInfo = r.getServiceInfo();
AgpItem agpItem = createAgpItem(serviceInfo);
if (agpItem!=null) {
syncItem(agpItem);
}
}