throw new DSAccessException("No object to update."); IObject ob = object.asIObject(); ModelMapper.unloadCollections(ob); IObject updated = gateway.updateObject(ob,
throw new DSAccessException("No object to update."); IObject oldObject = object.asIObject(); IObject ho = gateway.findIObject(object.asIObject()); if (ho == null) return null; ModelMapper.fillIObject(oldObject, ho); ModelMapper.unloadCollections(ho); IObject updated = gateway.updateObject(ho,
    public DataObject updateDataObject(DataObject object)            throws DSOutOfServiceException, DSAccessException    {        if (object == null)             throw new DSAccessException("No object to update.");          IObject ob = object.asIObject();        ModelMapper.unloadCollections(ob);        IObject updated = gateway.updateObject(ob,                                        (new PojoOptions()).map());        return PojoMapper.asDataObject(updated);    }