public OnLineResource getOnlineResource() { if (online == null) { OnLineResourceImpl impl = new OnLineResourceImpl(); try { impl.setLinkage(new URI(uri)); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } online = impl; } return online; }