User is a member of a group

Is it possible to determine which group(s) a user belongs to?

I can obtain a list of Groups using GroupManager and iterate through each group checking if a user is a member, but is there a better way?

nm, GroupManager.getGroups(JID user) does what I need.