member = parser.parse( member ).toString();
try { member = parser.parse( member ).toString(); } catch ( NamingException e ) { log.warn( "Malformed member DN.  Could not find groups for member in GroupCache. Returning empty set for groups!", e ); return Collections.EMPTY_SET; }
    public Set getGroups( String member ) throws NamingException    {        member = parser.parse( member ).toString();        Set memberGroups = null;        Iterator list = groups.keySet().iterator();        while ( list.hasNext() )        {            String group = ( String ) list.next();            Set members = ( Set ) groups.get( group );            if ( members == null )            {                continue;            }            if ( members.contains( member ) )            {                if ( memberGroups == null )                {                    memberGroups = new HashSet();                }                memberGroups.add( new LdapName( group ) );            }        }        if ( memberGroups == null )        {            return Collections.EMPTY_SET;        }        return memberGroups;    }