Repository lifetime can now be configured (usefull in web applications, as default is singleton)