@Override
 public Collection<CRResolvableBean> getObjects(CRRequest request, boolean doNavigation)
     throws CRException {
   Collection<CRResolvableBean> result = null;
   try {
     result = autocompleter.suggestWords(request);
   } catch (IOException ex) {
     throw new CRException(ex);
   }
   return result;
 }
 @Test
 public void testCompletions() {
   final Node node = assist.findNode();
   // Check that we did find a node
   Assert.assertNotNull(
       "No node found at " + assist.getRow() + ":" + assist.getColumn() + " for text " + nodeText,
       node);
   // Check that the node we found is the one we were actually looking for
   Assert.assertTrue(checkCompletion.startsWith(assist.getTextAtLocation()));
   List<Map<String, Object>> comps = assist.getCompletionsAsMap();
   String found = null;
   for (Map<String, Object> o : comps) {
     String comp = (String) o.get("insert");
     if (comp.startsWith(checkCompletion)) {
       found = comp;
     }
   }
   // Check that the completions contain the expected one
   Assert.assertNotNull("Completion '" + checkCompletion + "' not found in " + comps, found);
 }
 @Override
 public void finalize() {
   if (this.autocompleter != null) autocompleter.finalize();
 }