public synchronized Session getS() {
if (s == null) {
opened = true;
SessionBuilderImplementor sessionBuilderImplementor = factoryImplementor.withOptions();
sessionBuilderImplementor.connection(null);
sessionBuilderImplementor.flushBeforeCompletion(isAutoFlushEnabled());
sessionBuilderImplementor.autoClose(isAutoCloseEnabled());
sessionBuilderImplementor.connectionReleaseMode(factoryImplementor.getSettings().getConnectionReleaseMode());
return s = sessionBuilderImplementor.openSession();
}
return s;