protected static String forTaxId(String sTaxId, String sTypeName) throws ElementNotFoundException, NullPointerException, IllegalArgumentException {
if (null==sTaxId) throw new NullPointerException("Tax Id cannot be null");
AtrilSession oSes = DAO.getAdminSession("forTaxId");
DocumentIndexer oIdx = oSes.getDocumentIndexer();
if (sTaxId.length()==0) {
oSes.disconnect();
oSes.close();
throw new IllegalArgumentException("Tax Id cannot be empty");
}
SortableList<Document> oLst = (SortableList<Document>) oIdx.query("tax_id:\"" + sTaxId + "\" AND " + DocumentIndexer.AdditionalDocumentFields.DOCUMENT_TYPE_NAME.value() + ":" + sTypeName);
if (oLst.isEmpty()) {