Moved around the if else logic to check not just for session handle but also check if the content is protected or not.
Only if it is protected in addition to setting session handle then enter into dtcp encryption block