@Override
  public ReplicationPeerModificationSwitchResponse replicationPeerModificationSwitch(
    RpcController controller, ReplicationPeerModificationSwitchRequest request)
    throws ServiceException {
    try {
      server.checkInitialized();
      boolean prevValue = server.replicationPeerModificationSwitch(request.getOn());
      return ReplicationPeerModificationSwitchResponse.newBuilder().setPreviousValue(prevValue)
        .build();
    } catch (IOException ioe) {
      throw new ServiceException(ioe);
    }
  }
Determines if there is a coprocessor implementation in the provided argument which extends or
implements the provided {@code service}.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java