} catch (NumberFormatException nfe) {
throw new GeoWebCacheException(
"The parameters for height and width must both be positive integers.");
}
Resource data = tl.getFeatureInfo(gfiConv, bbox, height, width, x, y);
try {
tile.servletResp.setContentType(mimeType.getMimeType());
ServletOutputStream outputStream = tile.servletResp.getOutputStream();
data.transferTo(Channels.newChannel(outputStream));
outputStream.flush();
} catch (IOException ioe) {
tile.servletResp.setStatus(500);
log.error(ioe.getMessage());
}