+ " DB Writer: Processing doc: '" + sdi.getUri() + "'");
stmt.setString(1, truncate(sdi.getUri(), MAX_URI_LENGTH));
for (FSIterator iter = jcas.getAnnotationIndex(PersonTitle.type).iterator();
iter.hasNext();) {
PersonTitle pt = (PersonTitle) iter.next();
stmt.setString(2, truncate(pt.getCoveredText(), MAX_TITLE_LENGTH));
stmt.setInt(3, pt.getBegin());
stmt.setInt(4, pt.getEnd());
stmt.addBatch();
batchCounter--;
if (batchCounter <= 0) {
System.out.println("Time: " + (System.currentTimeMillis() - startTime)
+ " DB Writer: Batch writing updates - process call");