.getResource("org/pentaho/reporting/engine/classic/samples/Sample1.prpt");
// Parse the report file
final ResourceManager resourceManager = new ResourceManager();
resourceManager.registerDefaults();
final Resource directly = resourceManager.createDirectly(reportDefinitionURL, MasterReport.class);
return (MasterReport) directly.getResource();
} catch (ResourceException e) {
e.printStackTrace();
}
return null;