externalInventoryItems = (awsClient.getEC2Instances());
// Get the S3 inventory items
externalInventoryItems.addAll(awsClient.getS3BucketsAsJson());
} finally {
if (awsClient != null) {
awsClient.cleanUp();
}
}
} else if (client instanceof GitHubClient) {
externalInventoryItems = ((GitHubClient) client).getRepositories();
} else if (client instanceof GoogleAnalyticsClient) {