@Override
public <K extends Resource> K getResource(final String uri, final Class<K> resourceType) {
if (resourceType.isAssignableFrom(InputStreamResource.class)) {
final InputStream inputStream = getInputStream(uri);
if (inputStream != null) {
final InputStreamResource resource = new InputStreamResource();
resource.setInputStream(inputStream);
return resourceType.cast(resource);
}
}
final PersistenceUtil persistenceUtil = PersistenceUtil.getInstance(this.jasperReportsContext);