public void _spell() {
boolean res = true;
try {
log.println("Checking 'original' Spellchecker");
PropertyValue[] empty = new PropertyValue[0] ;
XSpellAlternatives alt = oObj.spell(
"Summersun",new Locale("en","US",""),empty);
String alternatives = alt.getAlternatives()[0];
res = (alternatives != null);
log.println("Result so far is - "+ (res ? "OK" : "failed"));
log.println("Checking alternative Spellchecker");
alt =alternative.spell(
"Summersun",new Locale("en","US",""),empty);
alternatives = alt.getAlternatives()[0];
res &= (alternatives != null);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("Exception while checking 'spell'");
res = false;
ex.printStackTrace(log);