private List readAndParseAll(List infos, String medium) {
List result = new ArrayList(infos.size() + 15);
for (Iterator i = infos.iterator(); i.hasNext(); ) {
StylesheetInfo info = (StylesheetInfo)i.next();
if (info.appliesToMedia(medium)) {
Stylesheet sheet = info.getStylesheet();
if (sheet == null) {
sheet = _stylesheetFactory.getStylesheet(info);
}
if (sheet!=null) {
if (sheet.getImportRules().size() > 0) {
result.addAll(readAndParseAll(sheet.getImportRules(), medium));
}
result.add(sheet);
} else {
XRLog.load(Level.WARNING, "Unable to load CSS from "+info.getUri());