ByteArrayOutputStream out = new ByteArrayOutputStream();
IOUtils.copy(res.openStream(), out);
stylesheets.put(resourceName, new StyleSheet(out.toByteArray()));
ByteArrayOutputStream out = new ByteArrayOutputStream();
IOUtils.copy(res.openStream(), out);
stylesheets.put(resourceName, new StyleSheet(out.toByteArray()));