ByteArrayInputStream bai = new ByteArrayInputStream(submit.get("xml").toString().getBytes());
InputSource source = new InputSource(bai);
Document orderDoc = docBuilder.parse(source);
Element orderElement = orderDoc.getDocumentElement();
orderElement.removeAttribute("at");
orderElement.removeAttribute("id");
orderElement.setAttribute("job_chain", jobChain);
NodeList orderChildren = orderElement.getChildNodes();
for (int i = 0; i < orderChildren.getLength(); i++) {
Node child = orderChildren.item(i);