throw new BagriException(ex, BagriException.ecDocument);
} finally {
unlockDocument(docKey);
}
} else {
<BUG>throw new BagriException("Was not able to aquire lock on Document: " + docKey +

", timeout: " + txManager.getTransactionTimeout(), BagriException.ecDocument);
}</BUG>
}

throw new BagriException(ex, BagriException.ecDocument);
}
}
}
return content;
}
