// parse it up
SLDParser parser = new SLDParser(styleFactory);
try {
parser.setInput(file);
Style[] array = parser.readXML();
if( array != null && array.length > 0 ){
return array[0];
}
} catch (FileNotFoundException e) {
return null; // well that is unexpected since f.exists()