Get metadata with key in klass.
key
klass
class to get metadata for
the key to get
the metadata for key.