private void addToCache(Result result, byte[] family, byte[] qualifier) throws IOException {
    Cell cell = result.getColumnLatestCell(family, qualifier);
    NamespaceDescriptor ns =
      ProtobufUtil.toNamespaceDescriptor(HBaseProtos.NamespaceDescriptor.parseFrom(CodedInputStream
        .newInstance(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength())));
    cache.put(ns.getName(), ns);
  }
This is a helper class used internally to manage the namespace metadata that is stored in the ns
family in meta table.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java