Retrieves the payload from the current PayloadContextService context.
Returns null if no context is available. Logs the operation if logging is enabled.
Type Parameters
Payload extends object = object
The type of the payload object, defaults to a generic object.
Retrieves the payload from the current PayloadContextService context. Returns null if no context is available. Logs the operation if logging is enabled.