-// Part xmlSubmissionPart = req.getPart(XML_SUBMISSION_FILE);
-// if (xmlSubmissionPart == null)
-// throw new ServletException("No " + XML_SUBMISSION_FILE + " part");
-// try (InputStream in = xmlSubmissionPart.getInputStream();) {
-// // pretty print
-// Transformer transformer = TransformerFactory.newInstance().newTransformer();
-// transformer.setOutputProperty(OutputKeys.INDENT, "yes");
-// transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
-// StreamResult result = new StreamResult(new StringWriter());
-// StreamSource source = new StreamSource(in);
-// transformer.transform(source, result);
-// String xmlString = result.getWriter().toString();
-// System.out.println(xmlString);
-// } catch (TransformerException e) {
-// e.printStackTrace();
-// }
-