public static synchronized GroupManager getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new GroupManager();
        }
        return INSTANCE;
    }
Returns a singleton instance of GroupManager.

@return a GroupManager instance.
xmppserver/src/main/java/org/jivesoftware/openfire/group/GroupManager.java