text1: In what does the doctrine of legitimate expectations have roots?
text2: The legitimate expectation doctrine holds that and that "those who act in good faith on the basis of law as it is or seems to be should not be frustrated in their expectations".