AttributeMultiValue oAttr = oUsr.getDocument().attribute("customer_acount");
oAttr.set(oNew.getUuid());
oUsr.getDocument().save("");
oIdx.indexDocument(oUsr.getDocument());
Document oOrders = oDms.newDocument(oDms.getDocumentType("Orders"), oNew.getDocument());
oOrders.save("");
oIdx.indexDocument(oOrders);
Document oClients = oDms.newDocument(oDms.getDocumentType("Clients"), oNew.getDocument());
oClients.save("");
oIdx.indexDocument(oClients);
Document oPayers = oDms.newDocument(oDms.getDocumentType("TaxPayers"), oNew.getDocument());
oPayers.save("");
oIdx.indexDocument(oPayers);
Document oCredits = oDms.newDocument(oDms.getDocumentType("CustomerAccountCredits"), oNew.getDocument());
oCredits.attribute("account_id").set(oNew.getString("account_id"));
oCredits.attribute("credits_used").set(0l);
oCredits.attribute("credits_left").set(0l);
oCredits.save("");
oIdx.indexDocument(oCredits);
Log.out.debug("PROFILING: Create CustomerAccount child documents "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
lStart = lEnd;