s3Objects = s3ObjectsIncomplete;
} else {
// Retrieve the complete information about all objects listed via GetObjectsHeads.
final ArrayList s3ObjectsCompleteList = new ArrayList(s3ObjectsIncomplete.length);
final S3ServiceException s3ServiceExceptions[] = new S3ServiceException[1];
S3ServiceMulti s3ServiceMulti = new S3ServiceMulti(s3Service, new S3ServiceEventAdaptor() {
public void s3ServiceEventPerformed(GetObjectHeadsEvent event) {
if (GetObjectHeadsEvent.EVENT_IN_PROGRESS == event.getEventCode()) {
S3Object[] finishedObjects = event.getCompletedObjects();
if (finishedObjects.length > 0) {
s3ObjectsCompleteList.addAll(Arrays.asList(finishedObjects));