String iface = getAttribute(node, "interface");
if (iface == null)
throw new InvalidConfigurationException("Cache policy has no interface.");
CachePolicy cp = Cache.createCachePolicy(name, iface);
if (cp == null)
throw new InvalidConfigurationException("Cache policy interface not supported: "+iface);
return cp;
}