}
try {
return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(), "UTF-8"),</BUG>
TenantNetwork.class);
<BUG>} catch (JsonSyntaxException e) {
s_logger.error("reading response body failed", e);
} catch (JsonIOException e) {
s_logger.error("reading response body failed", e);
} catch (IllegalStateException e) {
s_logger.error("reading response body failed", e);
} catch (IOException e) {
s_logger.error("reading response body failed", e);
}
return null;</BUG>
}

}
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);
}
