def METHOD_NAME(self, new_session, process_pdr_rules):
    """
    Process the messages received from session. Return True
    if parsing is successful.
    """
    # Assume things are green
    context_response =\
        UPFSessionContextState(
            cause_info=CauseIE(cause_ie=CauseIE.REQUEST_ACCEPTED),
            session_snapshot=UPFSessionState(
                subscriber_id=new_session.subscriber_id,
                local_f_teid=new_session.local_f_teid,
                session_version=new_session.session_version,
            ),
        )
    context_response.cause_info.cause_ie = \
        SessionStateManager.validate_session_msg(new_session)
    if context_response.cause_info.cause_ie != CauseIE.REQUEST_ACCEPTED:
        self.logger.warning(
            "Error : Parsing Error in SetInterface Message %d",
            context_response.cause_info.cause_ie,
        )
        return context_response
    # Create PDR rules
    pdr_validator = SessionStateManager._pdr_create_rule_group(new_session, process_pdr_rules)
    if pdr_validator:
        context_response.failure_rule_id.pdr.extend([pdr_validator.offending_ie])
        context_response.cause_info.cause_ie = pdr_validator.cause_info
    return context_response