public void addAccessRules(Collection accessrules){ Iterator iter = accessrules.iterator(); while(iter.hasNext()){ AccessRule accessrule = (AccessRule) iter.next(); try{ AccessRulesDataLocal data = createAccessRule(accessrule);  Iterator i =  getAccessRules().iterator(); while(i.hasNext()){ AccessRulesDataLocal ar = (AccessRulesDataLocal) i.next(); if(ar.getAccessRuleObject().getAccessRule().equals(accessrule.getAccessRule())){ getAccessRules().remove(ar); try{ ar.remove(); }catch(RemoveException e){ throw new EJBException(e.getMessage());} break; } }  getAccessRules().add(data); }catch(Exception e){
public void addAccessRules(Collection accessrules) { Iterator iter = accessrules.iterator(); while (iter.hasNext()) { AccessRule accessrule = (AccessRule) iter.next(); try { AccessRulesDataLocal data = createAccessRule(accessrule);  Iterator i = getAccessRules().iterator(); while (i.hasNext()) { AccessRulesDataLocal ar = (AccessRulesDataLocal) i.next(); if (ar.getAccessRuleObject().getAccessRule().equals(accessrule.getAccessRule())) { getAccessRules().remove(ar); try { ar.remove(); } catch (RemoveException e) { throw new EJBException(e.getMessage()); } break; } }  getAccessRules().add(data); } catch (Exception e) { }
    public void addAccessRules(Collection accessrules){      Iterator iter = accessrules.iterator();      while(iter.hasNext()){        AccessRule accessrule = (AccessRule) iter.next();          try{          AccessRulesDataLocal data = createAccessRule(accessrule);                   Iterator i =  getAccessRules().iterator();          while(i.hasNext()){            AccessRulesDataLocal ar = (AccessRulesDataLocal) i.next();            if(ar.getAccessRuleObject().getAccessRule().equals(accessrule.getAccessRule())){              getAccessRules().remove(ar);              try{                ar.remove();              }catch(RemoveException e){ throw new EJBException(e.getMessage());}              break;             }           }                    getAccessRules().add(data);        }catch(Exception e){        }      }     } // addAccessRules