New API - $modx->manager->getNewDocID()
$modx->manager->getNewDocID()