setMetadata
Adds getClassById metadata value to an object.
Parameters
subject
The object receiving the metadata.
metadataKey
A unique key to identify this metadata.
newMetadataValue
The metadata value to apply.
Throws
If value is null, or the owning plugin is null