public void forgetSecApp(ICFSecuritySecAppObj Obj, boolean forgetSubObjects) {
    ICFSecuritySecAppObj obj = Obj;
    CFSecuritySecAppPKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFSecuritySecAppObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByClusterIdx != null) {
        CFSecuritySecAppByClusterIdxKey keyClusterIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecuritySecAppPKey, ICFSecuritySecAppObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByUJEEMountIdx != null) {
        CFSecuritySecAppByUJEEMountIdxKey keyUJEEMountIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newUJEEMountIdxKey();
        keyUJEEMountIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUJEEMountIdx.setRequiredJEEMountName(keepObj.getRequiredJEEMountName());
        indexByUJEEMountIdx.remove(keyUJEEMountIdx);
      }

      if (allSecApp != null) {
        allSecApp.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {
        ((ICFSecuritySchemaObj) schema)
            .getSecFormTableObj()
            .forgetSecFormBySecAppIdx(
                keepObj.getRequiredClusterId(), keepObj.getRequiredSecAppId());
      }
    }
  }