InputStream bufByteIn = parseOutput(connection);
// map alchemy api results to UIMA type system
try {
Results results = this.digester.parseAlchemyXML(bufByteIn);
Validate.notNull(results);
Validate.notNull(results.getStatus());
if (this.getContext().getLogger().isLoggable(Level.FINER))
this.getContext().getLogger().log(Level.FINER, results.toString());
if (results.getStatus().equalsIgnoreCase(STATUS_OK)) {
mapResultsToTypeSystem(results, aJCas);
} else {
throw new AlchemyCallFailedException(new StringBuilder(results.getStatus()).append(" - ").
append(results.getStatusInfo()).toString());
}
} catch (Exception e) {
throw new ResultDigestingException(e);
} finally {