log.warn("Cannot deserialize the bytes to object");
return;
}
if (enclosed instanceof RequestMessage) {
// request message, see if we need to handle it
RequestMessage requestMsg = (RequestMessage) enclosed;
final RequestHandler handler = (RequestHandler) messageHandlers
.get(requestMsg.getClass());
if (handler != null) {
final PastryRequest request = new PastryRequest();
request.setContext(PastryNetwork.this.context);
request.setMessage(requestMsg);
request.setRemoteNodeId(wrapper.getSourceNodeId());