parser = factory.newSAXParser();
gangliaXMLParser = new GangliaXMLParser();
parser.parse(new InputSource(new StringReader(buffer)), gangliaXMLParser);
gridConfiguration = gangliaXMLParser.getGridConfiguration();
} catch (ParserConfigurationException e) {
throw new MonitorException("Error while parsing: " + e.getMessage());
} catch (SAXException e) {
throw new MonitorException("Error while parsing the XML: " + e.getMessage());
} catch (IOException e) {
throw new MonitorException("I/O error: " + e.getMessage());
}
}