final Expression expression =
getReport().getAttributeExpression(AttributeNames.Core.NAMESPACE, AttributeNames.Core.SUBREPORT_ACTIVE);
if (expression != null)
{
// the master-report state will only be non-null for subreports.
final InlineDataRowRuntime dataRowRuntime = new InlineDataRowRuntime();
dataRowRuntime.setState(this);
expression.setRuntime(dataRowRuntime);
try
{
final Object value = expression.getValue();
// the expression has to explicitly return false as a value to disable the report processing of