code: func GetExtension(tx ReadTx, id string) *api.Extension {
  	e := tx.get(tableExtension, id)
  	if e == nil {
  		return nil
  	}
  	return e.(extensionEntry).Extension
  }
docs: // GetExtension looks up an extension by ID.
  // Returns nil if the object doesn't exist.