sr = SessionRemotePool.getMasterSessionRemote(s.getOriginalProperties());
cr = SessionRemotePool.getCommandRemote(sr, "ALTER SEQUENCE " + getSQL() + " NEXT VALUE MARGIN", null, 1);
//cr.executeUpdate();
ResultInterface ri = cr.executeQuery(-1, false);
ri.next();
valueWithMargin = ri.currentRow()[0].getLong();
value = valueWithMargin - increment * cacheSize;
} catch (Exception e) {
throw DbException.convert(e);
} finally {
SessionRemotePool.release(sr);