* @param entry base application reference to make unique
*/
public static String uniqueAppDataReference(VamsasDocument dest,String base) {
- String urn = base.replace('/','.').replace('\\','.').replace(':', '_');
+ String urn = base.replace('/','_').replace('\\','_').replace(':', '_');
int v = 1;
for (int i=0, j=dest.getApplicationDataCount(); i<j; i++) {
ApplicationData o = dest.getApplicationData()[i];
// ensure new urn is really unique
while (o.getDataReference()!=null && o.getDataReference().equals(urn)) {
- urn = base+"."+v++;
+ urn = base+"_"+v++;
}
}
return urn;