du.setCreators(randomStringSet(rand.nextInt(2) + 1, rand.nextInt(10) + 1)); du.setSubjects(randomStringSet(rand.nextInt(2) + 1, rand.nextInt(5) + 1));
du.setParents(getDeliverableUnitRefSet(doc, DeliverableUnitField.PARENT)); du.setSubjects(getStringSet(doc, CoreMetadataField.SUBJECT)); du.setCreators(getStringSet(doc, CoreMetadataField.CREATOR)); du.setAlternateIds(getResourceIdentifierSet(doc));