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