Ability to register callbacks to classes that have a getMetadata function instead of exposing underlying resource.