final MasterReport resource = (MasterReport) directly.getResource();
final DocumentBundle bundle = resource.getBundle();
if (bundle == null)
{
// Ok, that should not happen if we work with the engine's parsers, but better safe than sorry.
final MemoryDocumentBundle documentBundle = new MemoryDocumentBundle(resource.getContentBase());
documentBundle.getWriteableDocumentMetaData().setBundleType(ClassicEngineBoot.BUNDLE_TYPE);
resource.setBundle(documentBundle);
resource.setContentBase(documentBundle.getBundleMainKey());
}
else
{
final MemoryDocumentBundle mem = new MemoryDocumentBundle(resource.getContentBase());
BundleUtilities.copyStickyInto(mem, bundle);
BundleUtilities.copyMetaData(mem, bundle);
resource.setBundle(mem);
resource.setContentBase(mem.getBundleMainKey());
}
final Object visible =
resource.getBundle().getMetaData().getBundleAttribute(ClassicEngineBoot.METADATA_NAMESPACE, "visible");//NON-NLS
if ("true".equals(visible))//NON-NLS