* standard object listing with a delimiter string.
*/
long startTime = System.currentTimeMillis();
// Find all the objects and common prefixes at the top level.
S3ObjectsChunk initialChunk = restService.listObjectsChunked(bucketName, null, delimiter, 1000, null, true);
long totalElapsedTime = System.currentTimeMillis() - startTime;
// We will use the common prefix strings, if any, to perform sub-listings
final String[] commonPrefixes = initialChunk.getCommonPrefixes();