}
try {
return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(), "UTF-8"),</BUG>
TenantPort.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 TenantPort createTenantPort(String tenantNetworkUuid) {
TenantPort req = new TenantPort();
req.networkUuid = tenantNetworkUuid;
req.attachmentType = "NoAttachment";
HttpPost method = new HttpPost();
method.setEntity(new StringEntity(new Gson().toJson(req), ContentType.APPLICATION_JSON));
return new Gson().fromJson(
executeMethod(method, "/ssp.v1/tenant-ports"),
TenantPort.class);
}
