// --------------------------------------------------------------------------
public static void reindexDocument(AtrilSession oSes, Document oDoc) throws AuthenticationException, SecuritySystemException, SQLException {
if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
DocumentIndexer oIdx = oSes.getDocumentIndexer();
oIdx.indexDocument(oDoc);
NodeList<Document> oChilds = oDoc.children();
for (Document c : oChilds) {
reindexDocument(oSes, oSes.getDms().getDocument(c.id()));
}
}