private GeoServerTileLayerInfoImpl depersist(final Resource res) throws IOException {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Depersisting GeoServerTileLayerInfo from " + res.path());
}
GeoServerTileLayerInfoImpl info;
<BUG>try(Reader reader = new InputStreamReader(res.in(), "UTF-8")) {
</BUG>
info = (GeoServerTileLayerInfoImpl) serializer.fromXML(reader);
}
return info;

private GeoServerTileLayerInfoImpl depersist(final Resource res) throws IOException {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Depersisting GeoServerTileLayerInfo from " + res.path());
}
GeoServerTileLayerInfoImpl info;
try(Reader reader = new InputStreamReader(new ByteArrayInputStream(res.getContents()), "UTF-8")) {
info = (GeoServerTileLayerInfoImpl) serializer.fromXML(reader);
}
return info;
