protected static void parseNamespaceResult(final String namespace, final Result result,
    final NamespaceQuotasVisitor visitor) throws IOException {
    byte[] data = result.getValue(QUOTA_FAMILY_INFO, QUOTA_QUALIFIER_SETTINGS);
    if (data != null) {
      Quotas quotas = quotasFromData(data);
      visitor.visitNamespaceQuotas(namespace, quotas);
    }
  }
Extracts the {@link SpaceViolationPolicy} and {@link TableName} from the provided
{@link Result} and adds them to the given {@link Map}. If the result does not contain the
expected information or the serialized policy in the value is invalid, this method will throw
an {@link IllegalArgumentException}.
@param result    A row from the quota table.
@param snapshots A map of snapshots to add the result of this method into.
hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaTableUtil.java