{
CachePolicy policy = null;
if (policyClass == TimedCachePolicy.class)
policy = new TimedCachePolicy(lifetime, true, resolution);
else if (policyClass == LRUCachePolicy.class)
policy = new LRUCachePolicy(min, max);
else
{
try
{
policy = policyClass.newInstance();