* @param attrNames the names of the attributes
*/
protected void retrieveMostUsedValues(int numValue, final String... attrNames)
throws ServiceException, IOException {
URL url = urlFactory.getAttributesFeedURL();
GoogleBaseQuery query = new GoogleBaseQuery(url);
StringBuffer queryString = createQueryString(attrNames);
query.setGoogleBaseQuery(queryString.toString());
query.setMaxValues(numValue);
int numResults = 0;
int lastNumResults = 0;
Collection<String> attrToRetrieve =
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;
}