On the Relation Between Two Approaches to Necessary Optimality Conditions in Problems with State Constraints