Retrieve an object of the specified type from the context.
the object instance, or null if not available
the class of the object to retrieve