for (NodePair current : nodes) {
JcrNode originalNode = current.originalNode;
JcrNode targetNode = current.targetNode;
JcrValueFactory vf = targetNode.getSession().getValueFactory();
JcrPropertyIterator propertyIterator = originalNode.getProperties();
while (propertyIterator.hasNext()) {
JcrProperty property = propertyIterator.nextProperty();
String name = property.getName();
if (!property.getDefinition().isProtected()) {
if (!property.getDefinition().isMultiple()) {
JcrValue value = property.getValue();
targetNode.setProperty(name, remapReference(value, uuidMap, vf));