NeighborRPC neighborRPC = new NeighborRPC(peerBean, connectionBean);
peer.neighborRPC(neighborRPC);
}
if (isEnableDirectDataRPC()) {
DirectDataRPC directDataRPC = new DirectDataRPC(peerBean, connectionBean);
peer.directDataRPC(directDataRPC);
}
if (isEnableBroadcast()) {
BroadcastRPC broadcastRPC = new BroadcastRPC(peerBean, connectionBean, broadcastHandler);