return Longs.toByteArray(r.nextLong());
}
}, Beacon.SCHEMA$, AvroFormat.BINARY, null);
Properties p = new Properties();
p.load(getClass().getResourceAsStream("creds.properties"));
ProviderCredentials pc = new AWSCredentials(p.getProperty("AWS_ACCESS_KEY_ID"), p.getProperty("AWS_SECRET_ACCESS_KEY"));
final RestS3Service s3 = new RestS3Service(pc);
S3Object[] s3Objects = s3.listObjects("com.bagcheck.archive", "beacons/", null);
ExecutorService es = Executors.newCachedThreadPool();
List<Callable<Void>> callables = new ArrayList<Callable<Void>>();
for (final S3Object s3Object : s3Objects) {