}
final XtextResource xtextResource = (XtextResource) query.eResource();
final IXtextDocument xtextDocument = getDocument(xtextResource,
currentModelToParse);
XtextSourceViewerConfiguration configuration = configurationProvider
.get();
ISourceViewer sourceViewer = getSourceViewer(xtextDocument,
configuration);
IContentAssistant contentAssistant = configuration
.getContentAssistant(sourceViewer);
String contentType;
try {
contentType = xtextDocument.getContentType(cursorPosition);
} catch (BadLocationException e) {