double duration = 1;
EnumSet<AccessPolicyPermission> write = EnumSet
.of(AccessPolicyPermission.WRITE);
service.create(AccessPolicy.create(name + "1", duration, write));
ExponentialRetryPolicy forceRetryPolicy = new ExponentialRetryPolicy(1,
1, new int[] { 201 });
MediaContract forceRetryService = service
.withFilter(new RetryPolicyFilter(forceRetryPolicy));
forceRetryService.create(AccessPolicy.create(name + "2", duration,