public class MessagingProxy extends SliceProxy implements MessagingSlice {
public void dispatchLocally(AID senderID, GenericMessage msg, AID receiverID) throws IMTPException, NotFoundException, JADESecurityException {
try {
GenericCommand cmd = new GenericCommand(H_DISPATCHLOCALLY, NAME, null);
cmd.addParam(senderID);
cmd.addParam(msg);
cmd.addParam(receiverID);
long timeStamp = msg.getTimeStamp();
if (timeStamp > 0) {
cmd.addParam(new Long(timeStamp));
}
cmd.setPrincipal(msg.getSenderPrincipal());
cmd.setCredentials(msg.getSenderCredentials());
Node n = getNode();
Object result = n.accept(cmd);
if((result != null) && (result instanceof Throwable)) {
if(result instanceof IMTPException) {