try { ServiceUtils.executeService(getUserView(), "CommitMetaObjects", new Object[] { getAllMetaObjects() }); } catch (Exception e) { throw new DomainException("domain.metaobject.service.failed", e); }
try { ServiceUtils.executeService(getUserView(), "CommitMetaObjects", new Object[] { getAllMetaObjects() }); } catch (Exception e) { if (e instanceof DomainException) { throw (DomainException) e; } else { throw new DomainException("domain.metaobject.service.failed", e); } }
    public void commit() {        try {            ServiceUtils.executeService(getUserView(), "CommitMetaObjects", new Object[] { getAllMetaObjects() });        } catch (Exception e) {            throw new DomainException("domain.metaobject.service.failed", e);        }    }