private IDocument applyExtractMethod(RefactoringInfo info, MockupExtractMethodRequestProcessor requestProcessor)
throws BadLocationException, MalformedTreeException, MisconfigurationException {
ExtractMethodRequest req = requestProcessor.getRefactoringRequests().get(0);
ExtractMethodEdit extractedMethodEdit = new ExtractMethodEdit(req);
ExtractCallEdit callExtractedMethodEdit = new ExtractCallEdit(req);
MultiTextEdit edit = new MultiTextEdit();
edit.addChild(extractedMethodEdit.getEdit());
edit.addChild(callExtractedMethodEdit.getEdit());
IDocument refactoringDoc = new Document(data.source);
edit.apply(refactoringDoc);
return refactoringDoc;