private IntegralDataTypeHolder doWorkInCurrentTransactionIfAny(SessionImplementor session) {
IdSourceKey key = getGeneratorKey( session );
Number nextValue = gridDialect.nextValue(
new NextValueRequest(
key,
optimizer.applyIncrementSizeToSourceValues() ? incrementSize : 1,
initialValue
)
);