@brmeyer maybe instead of getAnyFactory() use controlSessionFactory?