code: public void releaseClientObject (Name username)
      {
          ClientObject clobj = _objmap.get(username);
          if (clobj == null) {
              log.info("Requested to release unmapped client object", "username", username);
              return;
          }
  
          // decrement the reference count and stop here if there are remaining references
          if (clobj.release()) {
              return;
          }
  
          log.debug("Destroying client " + clobj.who() + ".");
  
          // we're all clear to go; remove the mapping
          _objmap.remove(username);
  
          // and destroy the object itself
          _omgr.destroyObject(clobj.getOid());
      }
docs: Releases a client object that was obtained via a call to {@link #resolveClientObject}. If
  this caller is the last reference, the object will be flushed and destroyed.