else if (dsPath.equalsIgnoreCase("/_system/configurations/upload")) {
try {
// read in and parse the body content
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser = factory.newSAXParser();
XMLConfigurationUploader handler = new XMLConfigurationUploader();
String xml = request.getParameter("file");
// log.debug("using string: " + xml);
InputSource is = new InputSource(new StringReader(xml));
is.setEncoding("UTF-8");
saxParser.parse(is, handler);
response.getOutputStream().print(handler.getStatus());
response.flushBuffer();
}
catch (SAXParseException err) {
err.printStackTrace();
response.sendError(500, "Exception parsing configurations: " + err);