JPQLExpression jpqlExpression = queryContext.getJPQLExpression();
String jpqlQuery = queryContext.getJPQLQuery();
// Calculate the position of the cursor within the parsed tree
queryPosition = jpqlExpression.buildPosition(jpqlQuery, position);
// Retrieve the word from the JPQL query (which is the text before the position of the cursor)
wordParser = new WordParser(jpqlQuery);
wordParser.setPosition(position);
word = wordParser.partialWord();