Language lang = new Language(language); // clerezza language for PlainLiterals
String lemmatizedContents;
try {
lemmatizedContents = this.client.lemmatizeContents(text, language);
} catch (IOException e) {
throw new EngineException("Error while calling the CELI Lemmatizer" + " service (configured URL: " + serviceURL + ")!", e);
} catch (SOAPException e) {
throw new EngineException("Error wile encoding/decoding the request/" + "response to the CELI lemmatizer service!", e);
}
// get a write lock before writing the enhancements
ci.getLock().writeLock().lock();
try {
UriRef textEnhancement = EnhancementEngineHelper.createTextEnhancement(ci, this);