class AdministratorGeoStoreClient extends GeoStoreClient {

    public ShortResourceList updateSecurityRules(ShortResourceList resourcesToSet, Long groupId,
            boolean canRead, boolean canWrite) {
        WebResource wr = getBaseWebResource("usergroups","update_security_rules", groupId, canRead, canWrite);
        ShortResourceList updatedResources = wr.header("Content-Type", MediaType.TEXT_XML)
                .accept(MediaType.TEXT_XML).put(ShortResourceList.class, resourcesToSet);
        return updatedResources;
    }

}