{
File xsl = new File(xslLocation);
StringWriter stw = new StringWriter();
Result result = new StreamResult(stw);
Templates template = factory.newTemplates(new StreamSource(xsl));
Transformer transformer = template.newTransformer();
transformer.transform(new DOMSource(xml), result);
String incomingXML = stw.toString();
System.out.println(incomingXML);
DocumentBuilder db1= DocumentBuilderFactory.newInstance().newDocumentBuilder();
unitOfWork = db1.parse(new InputSource(new StringReader(incomingXML)));