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());