resource.setInputStream(inputStream);
return resourceType.cast(resource);
}
}
final PersistenceUtil persistenceUtil = PersistenceUtil.getInstance(this.jasperReportsContext);
PersistenceService persistenceService = persistenceUtil.getService(FileRepositoryService.class, resourceType);
if (persistenceService != null) {
return resourceType.cast(persistenceService.load(uri, this));
}
return null;
}