package com.marklogic.batch.delimited.support;

import com.marklogic.spring.batch.item.processor.support.UriGenerator;

import java.util.Map;
import java.util.UUID;


public class BabyNameUriGenerator implements UriGenerator<Map<String, Object>> {

    @Override
    public String generateUri(Map<String, Object> stringObjectMap) {
        String uuid = UUID.randomUUID().toString();
        String uri = stringObjectMap.get("BRTH_YR").toString() + "-" + stringObjectMap.get("NM").toString();
        return uri;
    }
}

@@ -397,16 +397,22 @@
 ng uri =
+ %22/%22 +
  stringO
@@ -453,49 +453,17 @@
  + %22
--
+/
 %22 + 
-stringObjectMap.get(%22NM%22).toString()
+uuid
 ;%0A  

Add year as prefix