Add comment here: // Impossible as we're using a ByteArrayInputStream
and get rid of the useless LOG.error too please