> +
> + if (options.getLimit() != null) {
> + map.put("limit", options.getLimit());
> + }
> +
> + if (!isNullOrEmptyString(options.getOrderBy())) {
> + map.put("orderby", options.getOrderBy());
> + }
> + }
> +
> + request.setPayload(gson.toJson(map));
> +
> request.getPayload().getContentMetadata().setContentType("application/json");
> + return request;
> + }
> +
> + private boolean isNullOrEmptyString(Object value) {
You can remove this method as per previous comment about the utility method
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/166/files#r20578491