@Override
  public Entry filter(Entry entry) {
    if (this.peer.getPeerConfig().needToReplicate(entry.getKey().getTableName())) {
      return entry;
    } else {
      return null;
    }
  }
Filter a WAL Entry by the peer config according to the table and family which it belongs to.
@see ReplicationPeerConfig#needToReplicate(TableName, byte[])
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/NamespaceTableCfWALEntryFilter.java