return txt;
}
System.out.println("REF: " + reference);
Key key = null;
//If the reference is not valid, the next line will throw a NoSuchKeyEx
key = swordBook.getKey(reference);
String fullTxt = null;
// Somewhow, the following lines always throw a BookException...
// It seems that there is a bug in the jsword library we're using
/*
BookData data = new BookData(swordBook, key);
fullTxt = OSISUtil.getCanonicalText(data.getOsis());
*/
int cardinality = key.getCardinality();
for (int i = 0; i < cardinality; i++) {
BookData data = new BookData(swordBook, key);
//The following line can throw a BookException
fullTxt = OSISUtil.getCanonicalText(data.getOsis());
txt.add(fullTxt);