if (log.isLoggable(Level.FINEST)) {
log.finest(this + ": query(" + id + ") " + payload
+ "\n {to: " + to + ", from:" + from + "}");
}
MessageStream toStream = getMailbox(to);
if (toStream != null) {
toStream.query(id, to, from, payload);
return;
}
String msg;
msg = (this + ": query(" + id + ") to unknown actor to:" + to
+ "\n from:" + from
+ "\n payload:" + payload);
if (log.isLoggable(Level.FINER)) {
log.finer(msg);
}
BamError error = new BamError(BamError.TYPE_CANCEL,
BamError.ITEM_NOT_FOUND,
msg);
MessageStream fromStream = getMailbox(from);
if (fromStream != null)
fromStream.queryError(id, from, to, payload, error);
}