String srcName = namespaces.get(rand.nextInt(namespaces.size()));
String newName = namespaces.get(rand.nextInt(namespaces.size()));
try {
conn.namespaceOperations().rename(srcName, newName);
log.debug("Renamed namespace " + srcName + " " + newName);
} catch (NamespaceExistsException e) {
log.debug("Rename namespace " + srcName + " failed, " + newName + " exists");
} catch (NamespaceNotFoundException e) {
log.debug("Rename namespace " + srcName + " failed, doesn't exist");