code: public static Object put(final Cache<Serializable, Object> cache, final Serializable key, final Object value,
        final long lifespan, final TimeUnit unit)
     {
        PrivilegedAction<Object> action = new PrivilegedAction<Object>()
        {
           public Object run()
           {
              return cache.put(key, value, lifespan, unit);
           }
        };
        return SecurityHelper.doPrivilegedAction(action);
     }
docs: Put in Infinispan cache in privileged mode.
  
  @param cache