MX-3 named hibernate cache and properly closing hibernate session factory