{
// moving the filter creation to inside loop to fix DIRSERVER-1121
// didn't use clone() cause it is creating List objects, which IMO is not worth calling
// in this initialization phase
BranchNode filter = new OrNode();
filter.addNode( new EqualityNode<String>( OBJECT_CLASS_AT, new StringValue(
SchemaConstants.GROUP_OF_NAMES_OC ) ) );
filter.addNode( new EqualityNode<String>( OBJECT_CLASS_AT, new StringValue(
SchemaConstants.GROUP_OF_UNIQUE_NAMES_OC ) ) );
Dn baseDn = dnFactory.create( suffix );
SearchControls ctls = new SearchControls();
ctls.setSearchScope( SearchControls.SUBTREE_SCOPE );