Try-with-resources is not supported in API < 19.