} finally {
if (LOG.isDebugEnabled()) {
LOG.debug("Request dataset metadata #{} (pool: {}) done.", id, getConnectionStats());
}
}
<BUG>return metadata;</BUG>
}
@RequestMapping(value = "/api/datasets/preview/{id}", method = GET, consumes = ALL_VALUE, produces = APPLICATION_JSON_VALUE)
<BUG>@ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.")
public StreamingResponseBody preview(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
</BUG>
@RequestParam(defaultValue = "true") @ApiParam(name = "metadata", value = "Include metadata information in the response") boolean metadata,

} finally {
if (LOG.isDebugEnabled()) {
LOG.debug("Request dataset metadata #{} (pool: {}) done.", id, getConnectionStats());
}
}
}
@RequestMapping(value = "/api/datasets/preview/{id}", method = GET, consumes = ALL_VALUE, produces = APPLICATION_JSON_VALUE)
@ApiOperation(value = "Get a data set by id.", produces = APPLICATION_JSON_VALUE, notes = "Get a data set based on given id.")
@Timed
public ResponseEntity<StreamingResponseBody> preview(@ApiParam(value = "Id of the data set to get") @PathVariable(value = "id") String id,
@RequestParam(defaultValue = "true") @ApiParam(name = "metadata", value = "Include metadata information in the response") boolean metadata,
