return new HibernateRebuildSession(type, _sessionFactory, this, newScrollingSession(type));
}
}
private ScrollingSession newScrollingSession(final Class<?> type) {
ScrollingSessionProvider scrollingSessionProvider = _scrollingProviders.get(type);
return scrollingSessionProvider == null ? new DefaultQueryScrollingSession(type) : scrollingSessionProvider.newScrollingSession();
}