public void save1() throws ClipsException {
int auditcount = auditDetailsList.size();
try {
ecm.sinchronizePrimaryCache();
if (isNewlyCreated() || (details != null && !details.equals(detailsOriginal))) {
ModificationInfo modificationInfo = getBean().update(details);
if (isNewlyCreated()) {
details.setId(modificationInfo.getId());
initializedID = modificationInfo.getId();
}
detailsOriginal = (DETAILSTYPE) details.clone();
auditDetailsList.addAll(modificationInfo.getAudit());
}
} catch (Exception ex) {
clearBean();
throw new ClipsException("Не удалось сохранить объект \'"+ understandableName +"\' (" + this.toString()+")", ex);
}