if (outputProcessor == null)
{
throw new IllegalStateException("OutputProcessor is invalid.");
}
final LayoutProcess layoutProcess =
new ChainingLayoutProcess(new DefaultLayoutProcess(outputProcessor));
final ResourceManager resourceManager = job.getReportStructureRoot().getResourceManager();
final ResourceKey resourceKey = job.getReportStructureRoot().getBaseResource();
return new LibLayoutReportTarget
(job, resourceKey, resourceManager, layoutProcess);