{
// map used to collect all groups keyed by their dn. this eliminates duplicates in results.
HashMap<String, LdapGroup> allGroups = new HashMap<String, LdapGroup>();
// get the groups by name.
List<LdapGroup> topLevelGroups = groupMapper.execute(new LdapLookupRequest(inSearchString));
if (log.isDebugEnabled())
{
for (LdapGroup lg : topLevelGroups)
{