}
@Override
public void contextDestroyed(ServletContextEvent servletContextEvent) {
// Shut down our entity manager
EntityManagerProvider entityManagerProvider = CmfContext.getInstance().getEntityManagerProvider();
if(entityManagerProvider != null)
entityManagerProvider.shutdown();
}