}
private void pullGoogleAnalyticsActivity(Connection connection)
throws ConnectionNotFoundException, InvalidCredentialsException, IOException {
GoogleAnalyticsClient client = (GoogleAnalyticsClient)getClient(connection);
Map<String, InventoryItem> inventoryItemMap = getInventoryItemMap(connection);
List<JSONObject> profileMetricEntries = client.getAllProfileMetrics(inventoryItemMap.keySet());
Date lastActivityPoll = connection.getLastActivityPollDate();
Date lastActivity = lastActivityPoll;
try {
for (JSONObject entry : profileMetricEntries) {