public static void setMaxLifetimeProperty(String cacheName, long lifetime) {
        cacheName = cacheName.replaceAll(" ", "");
        if ( !Long.toString(lifetime).equals(JiveGlobals.getProperty(PROPERTY_PREFIX_CACHE + cacheName + PROPERTY_SUFFIX_MAX_LIFE_TIME)))
        {
            JiveGlobals.setProperty((PROPERTY_PREFIX_CACHE + cacheName + PROPERTY_SUFFIX_MAX_LIFE_TIME), Long.toString(lifetime));
        }
    }
Sets a local property which overrides the maximum cache entry lifetime
for the supplied cache name.
@param cacheName the name of the cache to store a value for.
@param lifetime the maximum cache entry lifetime.
xmppserver/src/main/java/org/jivesoftware/util/cache/CacheFactory.java