private void ApplyEventResponseSave(ElementRuntime elementRuntime, EventResponseSave ers)
{
IElement element = elementRuntime.AssociatedIElement;
string projectDirectory = FileManager.GetDirectory(GlueViewState.Self.CurrentGlueProjectFile);
string[] lines = GetMethodLines(element, ers, projectDirectory);
string fileName = EventResponseSave.GetSharedCodeFullFileName(element, projectDirectory);
CodeContext codeContext = new CodeContext(elementRuntime);
ApplyLinesInternal(lines, 0, lines.Length, element, codeContext, fileName);
}