public TenantNetwork createTenantNetwork(String tenantUuid, String networkName) {
TenantNetwork req = new TenantNetwork();
req.name = networkName;
req.tenantUuid = tenantUuid;
HttpPost method = new HttpPost();
<BUG>method.setEntity(new StringEntity(new Gson().toJson(req), ContentType.APPLICATION_JSON));
HttpResponse res = executeMethod(method, "/ssp.v1/tenant-networks");

if (res == null || res.getStatusLine().getStatusCode() != HttpStatus.SC_CREATED) {
return null;
}
try {
return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(), "UTF-8"),</BUG>
TenantNetwork.class);

public TenantNetwork createTenantNetwork(String tenantUuid, String networkName) {
TenantNetwork req = new TenantNetwork();
req.name = networkName;
req.tenantUuid = tenantUuid;
HttpPost method = new HttpPost();
method.setEntity(new StringEntity(new Gson().toJson(req), ContentType.APPLICATION_JSON));
return new Gson().fromJson(
executeMethod(method, "/ssp.v1/tenant-networks"),
TenantNetwork.class);
