code: public void remove(BeanId beanId, boolean removeFromFailoverCache)
                      throws RemoteException //LIDB2018-1
      {
          // LIDB2018-1 begins
          if (ivStatefulFailoverCache == null || !ivStatefulFailoverCache.beanExists(beanId))
          {
              //PK69093 - beanStore.remove will access a file, as such lets synch this call
              //such that only one file can be open for remove at a time.
              synchronized (ivRemoveLock)
              {
                  // failover cache does not exist (e.g. SFSB failover is not enabled)
                  // or SFSB is not in failover cache.  Therefore, SFSB must be in
                  // the passivation file for the bean. So remove it from bean store.
                  ivBeanStore.remove(beanId);
              }
          }
          else
          {
              // SFSB is in the failover cache, so remove it from failover Cache.
              if (removeFromFailoverCache)
              {
                  ivStatefulFailoverCache.removeCacheEntry(beanId);
              }
          }
          // LIDB2018-1 ends
      }
docs: Version of remove which can be used with only a beanId passed in
  as input.
  
  @param beanId of the SFSB to be removed.
  
  @param removeFromFailoverCache indicates whether or not to remove from
  failover cache if found in failover cache. Note, the intent is
  only a timeout or SFSB.remove() call should cause failover cache
  entry to be removed. Shutdown of server should not cause failover
  cache entry to be removed. Thus, the caller of this method uses
  this parameter to indicate whether or not to remove SFSB from
  local failover cache.
  
  @throws RemoteException if a failure occurs removing the bean.