extractDeclared
Extracts an object of the specified type from the exchange context.
This method first tries to extract from the parent implementation, then checks if the requested type matches the state aggregate or its state.
Return
The extracted object of the specified type, or null if not found
Parameters
type
The class type to extract
T
The type to extract