/** {@inheritDoc} */ public boolean save(IPersistable object) { final String key = getObjectId(object); objects.put(key, object); object.setPersistent(true); return true; }
/** {@inheritDoc} */ public boolean remove(String name) { if (!objects.containsKey(name)) { return false; } IPersistable object = objects.remove(name); object.setPersistent(false); return true; }