if (nextNodePos == null) {
nextNodePos = nodePos;
}
final PageBufferManager buffer = btree.getBuffer();
final BTreeSpec btreeSpec = btree.getBTreeSpec();
PageNumber dupPageNumber = new PageNumber(nodePos.getPageNo());
try {
DataPage curDataPage = new DataPage(btree.getBtreeId(), dupPageNumber, btreeSpec, buffer);
DataNode curDataNode = new DataNode(curDataPage, nodePos.getOffsetInPage());
curDataNode.setFlags(BTreeSpec.DATA_NODE_DUP_NEXT);