}
if(!documentExists) {
DocumentorderBean doBean = new DocumentorderBean();
doBean.setDocument(getDocumentName());
doBean.setOrdernumber(doMax+1);
doBean.create(con);
}
// Set the number of top level containers saved
result.setResult(saveVariables(xmlDoc, con, result));
}
} catch (UnsupportedEncodingException uee) {