+ // if the LUID is wrong and < 3, pad it to 3 chars with "0" then
+ // retry (since LUIDs are %03d)
+ if (luid != null && luid.length() < 3) {
+ while (luid.length() < 3) {
+ luid = "0" + luid;
+ }
+ setStory(luid);
+ } else {
+ throw new IOException("Cannot retrieve story from library: "
+ + luid);
+ }