public void minimizeMemory() {
   allSecGroupInclude = null;
   indexByClusterIdx = null;
   indexByGroupIdx = null;
   indexByIncludeIdx = null;
   indexByUIncludeIdx = null;
   List<ICFSecuritySecGroupIncludeObj> toForget = new LinkedList<ICFSecuritySecGroupIncludeObj>();
   ICFSecuritySecGroupIncludeObj cur = null;
   Iterator<ICFSecuritySecGroupIncludeObj> iter = members.values().iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     if (cur.getEdit() == null) {
       toForget.add(cur);
     }
   }
   iter = toForget.iterator();
   while (iter.hasNext()) {
     cur = iter.next();
     cur.forget();
   }
 }
 public void deleteSecGroupIncludeByIdIdx(long ClusterId, long SecGroupIncludeId) {
   CFSecuritySecGroupIncludePKey pkey =
       ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey();
   pkey.setRequiredClusterId(ClusterId);
   pkey.setRequiredSecGroupIncludeId(SecGroupIncludeId);
   ICFSecuritySecGroupIncludeObj obj = readSecGroupInclude(pkey);
   if (obj != null) {
     ICFSecuritySecGroupIncludeEditObj editObj = (ICFSecuritySecGroupIncludeEditObj) obj.getEdit();
     boolean editStarted;
     if (editObj == null) {
       editObj = (ICFSecuritySecGroupIncludeEditObj) obj.beginEdit();
       if (editObj != null) {
         editStarted = true;
       } else {
         editStarted = false;
       }
     } else {
       editStarted = false;
     }
     if (editObj != null) {
       editObj.delete();
       if (editStarted) {
         editObj.endEdit();
       }
     }
     obj.forget(true);
   }
 }