Two completely separate and different issues. One the military has control over but had better exercise that control expeditiously. The second will be entirely up to what emerges from that democratic transition. Expect international obligations not suitable for furthering the will of its people to be gone in the blink of an eye. Should Israel continue the occupation with all that it entails no more treaty period.
from the article: Obama welcomes Egypt's pledge to maintain international treaties