WordNet working within Java