hmm i dont think we can make it work with the repository strategy however .. since the document is not yet persisted. so i fear that if you use the repository strategy, then you cannot use replace unless you set the nodename.