try {
// if we have a body, and we have not been told to use the cached version
if ((bodyContent != null) && (useBody || (time == 0)) && ((body = bodyContent.getString()) != null)) {
if ((time != 0) || (refreshPolicyClass != null)) {
// Instantiate custom refresh policy if needed
WebEntryRefreshPolicy policy = null;
if (refreshPolicyClass != null) {
try {
policy = (WebEntryRefreshPolicy) Class.forName(refreshPolicyClass).newInstance();
policy.init(actualKey, refreshPolicyParam);
} catch (Exception e) {
if (log.isInfoEnabled()) {
log.info("<cache>: Problem instantiating or initializing refresh policy : " + refreshPolicyClass);
}
}