public List<String> getGroups() {
        return groups;
    }
Returns the groups for the item. Shared groups won't be included in the answer.

@return The groups for the item.
xmppserver/src/main/java/org/jivesoftware/openfire/roster/RosterItem.java