final String id = info.getId();
checkNotNull(id, "Can't modify an object with no id");
final ModificationProxy modificationProxy = ModificationProxy.handler(info);
Preconditions.checkNotNull(modificationProxy, "Not a modification proxy: ", info);
final Info oldObject = (Info) modificationProxy.getProxyObject();
cache.invalidate(id);
// get changed properties before h.commit()s
final Iterable<Property> changedProperties = dbMappings.changedProperties(oldObject, info);
// see HACK block bellow
final boolean updateResouceLayersName = info instanceof ResourceInfo
&& modificationProxy.getPropertyNames().contains("name");
modificationProxy.commit();
Map<String, ?> params;
// get the object's internal id
final Integer objectId = findObjectId(info);