* @param report the report for which to create the writer configuration.
* @return the generated configuration.
*/
public static Configuration createDefaultConfiguration(final MasterReport report)
{
final ModifiableConfiguration repConf =
new HierarchicalConfiguration(report.getReportConfiguration());
final ResourceKey contentBase = report.getContentBase();
if (contentBase != null)
{
final ResourceManager resourceManager = report.getResourceManager();
final URL value = resourceManager.toURL(contentBase);
if (value != null)
{
repConf.setConfigProperty
(AbstractXmlResourceFactory.CONTENTBASE_KEY, value.toExternalForm());
}
}
return repConf;