453454455456457458459460461462463
} // parse it up SLDParser parser = new SLDParser(styleFactory); try { parser.setInput(file); StyledLayerDescriptor sld = parser.parseSLD(); return sld; } catch (FileNotFoundException e) { return null; // well that is unexpected since f.exists() } }