// Store deleted keys in the results
if (missingKeyBag.getTModelKey() != null && missingKeyBag.getTModelKey().size() > 0)
result.getKeyBag().add(missingKeyBag);
KeyBag resultsKeyBag = new KeyBag();
TModelDetail tmodelDetail = new TModelDetail();
// 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.Tmodel modelTModel = existingList.get(currentIndex);
if (startPointDate.after(modelTModel.getModifiedIncludingChildren())) {
currentIndex++;
continue;
}
if (endPointDate.before(modelTModel.getModifiedIncludingChildren())) {
currentIndex++;
continue;
}
if (modelSubscription.isBrief()) {
resultsKeyBag.getTModelKey().add(modelTModel.getEntityKey());
}
else {
org.uddi.api_v3.TModel apiTModel = new org.uddi.api_v3.TModel();
MappingModelToApi.mapTModel(modelTModel, apiTModel);
tmodelDetail.getTModel().add(apiTModel);
returnedRowCount++;
}
// If the returned rows equals the max allowed, we can end the loop.