*/
public class PersistentDeliveryProxy extends SliceProxy implements PersistentDeliverySlice {
public boolean storeMessage(String storeName, GenericMessage msg, AID receiver) throws IMTPException, NotFoundException {
try {
GenericCommand cmd = new GenericCommand(H_STOREMESSAGE, NAME, null);
cmd.addParam(storeName);
// NOTE that we can't send the GenericMessage directly as a parameter
// since we would loose the embedded ACLMessage
cmd.addParam(msg.getACLMessage());
cmd.addParam(msg.getEnvelope());
cmd.addParam(msg.getPayload());
cmd.addParam(new Boolean(msg.hasForeignReceiver()));
cmd.addParam(msg.getTraceID());
cmd.addParam(receiver);
Node n = getNode();
Object result = n.accept(cmd);
if((result != null) && (result instanceof Throwable)) {
if(result instanceof IMTPException) {