AdminEntityPK uepk = createAdminEntityPK(getAdminGroupName(), getCAId(), ue.getMatchWith()
AdminEntityPK uepk = createAdminEntityPK(getAdminGroupName(), getCaId(), ue.getMatchWith()
    public void addAdminEntities(Collection adminentities) {        Iterator iter = adminentities.iterator();        while (iter.hasNext()) {            AdminEntity adminentity = (AdminEntity) iter.next();            try {                AdminEntityDataLocal data = createAdminEntity(adminentity);                AdminEntityPK datapk = createAdminEntityPK(getAdminGroupName(), getCAId(), adminentity.getMatchWith(), adminentity.getMatchType(), adminentity.getMatchValue());                Iterator i = getAdminEntities().iterator();                while (i.hasNext()) {                    AdminEntityDataLocal ue = (AdminEntityDataLocal) i.next();                    // TODO use ue.getPrimaryKey() ?                    AdminEntityPK uepk = createAdminEntityPK(getAdminGroupName(), getCAId(), ue.getMatchWith()                            , ue.getMatchType(), ue.getMatchValue());                    if (uepk.equals(datapk)) {                        getAdminEntities().remove(ue);                        try {                            ue.remove();                        } catch (RemoveException e) {                            throw new EJBException(e.getMessage());                        }                        break;                    }                }                getAdminEntities().add(data);            } catch (Exception e) {            }        }    } // addAdminEntities