final ResourceManager manager,
final ResourceData data,
final ResourceKey context)
throws ResourceCreationException, ResourceLoadingException
{
final JFreeReport report = (JFreeReport) res;
if (report == null)
{
throw new ResourceCreationException("Report has not been parsed.");
}
if (context != null)
{
report.setBaseResource(context);
}
else
{
report.setBaseResource(data.getKey());
}
report.setResourceManager(manager);
return report;
}