{
final ReportDesignerContext context = rootBandRenderComponent.getDesignerContext();
final int contextCount = context.getReportRenderContextCount();
for (int i = 0; i < contextCount; i++)
{
final ReportRenderContext rrc = context.getReportRenderContext(i);
if (rrc.getReportDefinition() == value)
{
context.setActiveDocument(rrc);
return null;
}
}