group.setLastModifiedTimestamp(System.currentTimeMillis());
group.setLocale("en_US");
Location location = new Location();
location.setCountryCode("us");
StringArray geoPlaceCodes = new StringArray();
geoPlaceCodes.add("1-2-3-4-5");
location.setGeoPlaceCodes(geoPlaceCodes);
location.setGeoPostalCode("94043");
location.setGmtOffset(-8f);
location.setLatitude(122.1f);
location.setLongitude(37.4f);
location.setPostalCode("94043");
location.setRegionCode(37);
location.setUsesDaylightSavings(true);
group.setLocation(location);
group.setMaxFeeds(100);
group.setMaxIdentityChanges(5);
group.setMaxMembers(2000);
group.setMaxModerators(10);
group.setMaxSubgroups(20);
group.setName(name);
group.setNewsFormat(NewsFormat.RECENT);
group.setNonMemberPermissions(NonMemberPermissions.COMMENT_AND_POST_WITH_MODERATION);
group.setNumIdentityChanges(5);
group.setNumMemberFlagsToDelete(3);
group.setOpenedToNonMembersTimestamp(System.currentTimeMillis());
group.setOtherCategory(3);
// group.setParentGroupId();
StringArray preApprovedEmailDomains = new StringArray();
preApprovedEmailDomains.add("example.com");
preApprovedEmailDomains.add("linkedin.com");
group.setPreApprovedEmailDomains(preApprovedEmailDomains);
group.setPreModerateMembersWithLowConnections(true);
group.setPreModerateNewMembersPeriodInDays(3);
group.setPreModeration(PreModerationType.COMMENTS);