@Override
public void contextDestroyed( ServletContextEvent sce ) {
// destroy services factory
CmisServiceFactory factory = (CmisServiceFactory)sce.getServletContext().getAttribute(SERVICES_FACTORY);
if (factory != null) {
factory.destroy();
}
super.contextDestroyed(sce);
}