MessagingSlice newSlice = (MessagingSlice) getFreshSlice(newSliceName);
// Send all possible routes to the new slice
ContainerID[] cids = impl.containerIDs();
for(int i = 0; i < cids.length; i++) {
ContainerID cid = cids[i];
try {
List mtps = impl.containerMTPs(cid);
Iterator it = mtps.iterator();
while(it.hasNext()) {
MTPDescriptor mtp = (MTPDescriptor)it.next();
newSlice.addRoute(mtp, cid.getName());
}
}
catch(NotFoundException nfe) {
// Should never happen
nfe.printStackTrace();