new ArrayList<String>(Arrays.asList(attrNames));
do {
// Get the feed
numResults += STEP_MAXRESULTS;
query.setMaxResults(numResults);
GoogleBaseFeed feed = service.query(query);
if (lastNumResults == feed.getTotalResults()) {
// No new entries to process
break;
}
lastNumResults = feed.getTotalResults();
// Extract the values from the entries
Iterator<String> attrIter = attrToRetrieve.iterator();
while (attrIter.hasNext()) {
String attrName = attrIter.next();
// Searching for the entry with the following name
String entryTitle = attrName + TEXT_TYPE;
for (GoogleBaseEntry entry : feed.getEntries()) {
if (entryTitle.equals(entry.getTitle().getPlainText())) {
extractValuesFromEntry(numValue, attrName, entry);
attrIter.remove();
}
}