} catch(Exception e) {
throw new RefactoringStatusException(RefactoringMessages.ExtractMethodInputPage_errorCouldNotParseSourceCode);
}
// Get covering namespace/class/method/function declaration
fCoveringDeclarationFinder = new CoveringDeclarationFinder();
fCoveringDeclarationFinder.setRange(getSelectedRange());
fProgram.accept(fCoveringDeclarationFinder);
try {
// retrieve method, which covers the selected code