Make Configuration and SessionFactoryImpl extendable