} catch (com.sun.star.lang.IllegalArgumentException e) {
e.printStackTrace(log);
throw new StatusException("Couldn't get a spreadsheet", e);
}
XSheetLinkable SL = (XSheetLinkable)
UnoRuntime.queryInterface(XSheetLinkable.class, oSheet);
// creating link. Doesn't matter that it refers to unexistant object.
// this is for proper work of X*Access tests.
String aSourceArea = util.utils.getFullTestURL("calcshapes.sxc");
SL.link(aSourceArea, "Sheet1", "", "",
com.sun.star.sheet.SheetLinkMode.VALUE);
// Getting links.
XPropertySet docProps = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, xSheetDoc);