protected void checkRelease(){
  if (!isPersistentObject() && listeners.isEmpty() && !isAcquired()) {
    log.info("Deleting shared object {} because all clients disconnected and it is no longer acquired.",name);
    if (storage != null) {
      if (!storage.remove(this)) {
        log.error("Could not remove shared object.");
      }
    }
    close();
  }
}

protected void checkRelease ( ) { if ( ! isPersistentObject ( ) && listeners . isEmpty ( ) && ! isAcquired ( ) ) { log . info ( "Deleting shared object {} because all clients disconnected and it is no longer acquired." , name ) ; if ( storage != null ) { if ( ! storage . remove ( this ) ) { log . error ( "Could not remove shared object." ) ; } } close ( ) ; } }
check if shared object must be released .
