private static QueryTask buildRegistryQueryByGroup(String tenantLink){
  Query groupClause=QueryUtil.addTenantGroupAndUserClause(tenantLink);
  return buildRegistryQuery(groupClause);
}

private static QueryTask buildRegistryQueryByGroup ( String tenantLink ) { Query groupClause = QueryUtil . addTenantGroupAndUserClause ( tenantLink ) ; return buildRegistryQuery ( groupClause ) ; }
create a query to return all registrystate links within a group or global registrystate links if the group is null / empty
