/** * {@inheritDoc} */ public ExternalReport createExternalReport(final ReportId reportId, final LinkConstructorStrategy strategy) { if (reportId == null) { throw new IllegalArgumentException("The report ID is required."); } if (strategy == null) { throw new IllegalArgumentException( "The link construction strategy is required."); } final String reportBasePath = createRelativeReportLocationLink(reportId, strategy); if (reportBasePath != null) { return new ExternalReport(reportId, reportBasePath, strategy); } else { return null; } }