@Override
  public GetReplicationPeerModificationProceduresResponse getReplicationPeerModificationProcedures(
    RpcController controller, GetReplicationPeerModificationProceduresRequest request)
    throws ServiceException {
    try {
      server.checkInitialized();
      GetReplicationPeerModificationProceduresResponse.Builder builder =
        GetReplicationPeerModificationProceduresResponse.newBuilder();
      for (Procedure<?> proc : server.getProcedures()) {
        if (proc.isFinished()) {
          continue;
        }
        if (!(proc instanceof AbstractPeerNoLockProcedure)) {
          continue;
        }
        builder.addProcedure(ProcedureUtil.convertToProtoProcedure(proc));
      }
      return builder.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