Indeed , Shearman & Sterling provided the legal advice to Morgan Stanley when it merged with Dean Witter in 1997 , and Stephen R. Volk , a former senior partner at the firm , has a close relationship with John J. Mack , a former president of Morgan Stanley .