...Code that you had put in the write method before the call to super must be moved to the writing method.
Code you had in the writing method after the call to super must be moved to the written method....
http://msdn.microsoft.com/en-us/library/jj129662.aspx