RemotePolicyCacheConfiguration configuration =
new RemotePolicyCacheConfiguration();
configuration.setAllowRetryFailedRetrieval(Boolean.FALSE);
configuration.setDefaultRetryFailedRetrieval(Boolean.TRUE);
CacheControlConstraints constraints = new CacheControlConstraints(configuration);
CacheControl cacheControl = constraints.getDefaultCacheControl();
checkCacheControl(cacheControl, true, false, false, 0, 0, 3600);
}