PI mapping and class hierarchy for a generic mapping to first determine a session key and then process the payload with the session key.