Edward S. Walker Jr. , a former ambassador to Israel and Egypt and now the president of the Middle East Institute , a research institution in Washington , said Mr. Matthews had worked directly for two years with Ambassador Alfred L. Atherton Jr. , the Carter administration 's Middle East envoy , on the details that preceded the formal talks , including talking to Egyptian and Israeli officials and preparing position papers .