public void doAsyncSpellingSuggestion(String word) {
try {
SimplifiedSpellCheckStub stub = new SimplifiedSpellCheckStub();
DoSpellingSuggestions doSpellingSuggestions = new DoSpellingSuggestions();
doSpellingSuggestions.setPhrase(word);
SimplifiedSpellCheckCallbackHandlerImpl callbackHandlerImpl = new SimplifiedSpellCheckCallbackHandlerImpl(observer, word);
stub.startdoSpellingSuggestions(doSpellingSuggestions, callbackHandlerImpl);
} catch (Exception ex) {
observer.updateError(ex.getMessage());
}
}