if(state.isStateless() || (state.isStateful() && !jdbcCtx.isActive())) {
if(state.isStateless()){
if(pag.isPaginating()){
if(offsetOpt.isActive()){
jdbcCtx.realOffset+=offsetOpt.offset;
offsetOpt.passivate();
}else {
// keeps realOffset
}
}else {
// if page is active, immediately passivates it not to keep is active