@Override
  public byte[] encodeVisibilityForReplication(final List<Tag> tags, final Byte serializationFormat)
    throws IOException {
    if (
      tags.size() > 0 && (serializationFormat == null
        || serializationFormat == SORTED_ORDINAL_SERIALIZATION_FORMAT)
    ) {
      return createModifiedVisExpression(tags);
    }
    return null;
  }
@param putVisTags    Visibility tags in Put Mutation
@param deleteVisTags Visibility tags in Delete Mutation
@return true when all the visibility tags in Put matches with visibility tags in Delete. This
        is used when both the set of tags are sorted based on the label ordinal.
hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultVisibilityLabelServiceImpl.java