public ICompletionProposal[] computeCompletionProposals(
String currentModelToParse, int cursorPosition) {
if (currentModelToParse == null) {
currentModelToParse = "";
}
Query query = queryParser.parse(currentModelToParse);
if (query == null) {
return new ICompletionProposal[0];
}
final XtextResource xtextResource = (XtextResource) query.eResource();
final IXtextDocument xtextDocument = getDocument(xtextResource,
currentModelToParse);
XtextSourceViewerConfiguration configuration = configurationProvider
.get();