RemotePolicyCacheConfiguration configuration =
new RemotePolicyCacheConfiguration();
configuration.setAllowRetainDuringRetry(Boolean.FALSE);
configuration.setDefaultRetainDuringRetry(Boolean.TRUE);
CacheControlConstraints constraints = new CacheControlConstraints(configuration);
CacheControl cacheControl = constraints.getDefaultCacheControl();
checkCacheControl(cacheControl, true, false, true, 600, 5, 3600);
}