public Set createDynamicGroups(Set groupNames) throws AMException, SSOException {
  Iterator iter=groupNames.iterator();
  Set groups=new HashSet();
  while (iter.hasNext()) {
    String groupDN=AMNamingAttrManager.getNamingAttr(GROUP) + "=" + ((String)iter.next())+ ","+ entryDN;
    AMDynamicGroupImpl groupImpl=new AMDynamicGroupImpl(token,groupDN);
    groupImpl.create();
    groups.add(groupImpl);
  }
  return groups;
}

public Set createDynamicGroups ( Set groupNames ) throws AMException , SSOException { Iterator iter = groupNames . iterator ( ) ; Set groups = new HashSet ( ) ; while ( iter . hasNext ( ) ) { String groupDN = AMNamingAttrManager . getNamingAttr ( GROUP ) + "=" + ( ( String ) iter . next ( ) ) + "," + entryDN ; AMDynamicGroupImpl groupImpl = new AMDynamicGroupImpl ( token , groupDN ) ; groupImpl . create ( ) ; groups . add ( groupImpl ) ; } return groups ; }
creates dynamic groups in this group container .
