}
private void removeAllMTPs(ContainerID cid) {
try {
List l = containers.getMTPs(cid);
Object[] objs = l.toArray();
for(int i = 0; i < objs.length; i++) {
MTPDescriptor mtp = (MTPDescriptor)objs[i];
GenericCommand gCmd = new GenericCommand(jade.core.messaging.MessagingSlice.DEAD_MTP, jade.core.messaging.MessagingSlice.NAME, null);
gCmd.addParam(mtp);