// Store deleted keys in the results
if (missingKeyBag.getBusinessKey() != null && missingKeyBag.getBusinessKey().size() > 0)
result.getKeyBag().add(missingKeyBag);
KeyBag resultsKeyBag = new KeyBag();
BusinessDetail businessDetail = new BusinessDetail();
// Set the currentIndex to 0 or the value of the chunkData
int currentIndex = 0;
if (chunkData != null)
currentIndex = chunkData;
int returnedRowCount = 0;
while(currentIndex < existingList.size()) {
org.apache.juddi.model.BusinessEntity modelBusinessEntity = existingList.get(currentIndex);
if (startPointDate.after(modelBusinessEntity.getModifiedIncludingChildren())) {
currentIndex++;
continue;
}
if (endPointDate.before(modelBusinessEntity.getModifiedIncludingChildren())) {
currentIndex++;
continue;
}
if (modelSubscription.isBrief()) {
resultsKeyBag.getBusinessKey().add(modelBusinessEntity.getEntityKey());
}
else {
org.uddi.api_v3.BusinessEntity apiBusinessEntity = new org.uddi.api_v3.BusinessEntity();
MappingModelToApi.mapBusinessEntity(modelBusinessEntity, apiBusinessEntity);
businessDetail.getBusinessEntity().add(apiBusinessEntity);
returnedRowCount++;
}
// If the returned rows equals the max allowed, we can end the loop.