public void shareWithNobody() {
        final PersistableMap<String, String> properties = getProperties();
        properties.put(SHARED_ROSTER_SHOW_IN_ROSTER_PROPERTY_KEY, SharedGroupVisibility.nobody.getDbValue());
        properties.put(SHARED_ROSTER_DISPLAY_NAME_PROPERTY_KEY, "");
        properties.put(SHARED_ROSTER_GROUP_LIST_PROPERTY_KEY, "");
    }
Disable contact list group sharing for this group.
xmppserver/src/main/java/org/jivesoftware/openfire/group/Group.java