final URL dataItemUrl; try { dataItemUrl = new URL( dataUrlRepo.getURL(), dataPath ); } catch ( MalformedURLException e ) { final UrlRepository documentUrlRepo = (UrlRepository) documentRepository; final String documentPath = buildPath( sourceDocument ); final URL documentUrl = new URL( documentUrlRepo.getURL(), documentPath ); return IOUtils.getInstance().createRelativeURL( dataItemUrl, documentUrl ); } catch ( MalformedURLException e ) {