apply lifespan template