- if (jsonDmaapInfo.containsKey("location")){\r
- dmaapInfo.setLocation(jsonDmaapInfo.getString("location"));\r
- }\r
- if (jsonDmaapInfo.containsKey("topic_url")) {\r
- dmaapInfo.setTopicUrl(jsonDmaapInfo.getString("topic_url"));\r
- }\r
- if (jsonDmaapInfo.containsKey("client_id")) {\r
- dmaapInfo.setClientId(jsonDmaapInfo.getString("client_id"));\r
- }\r
- if (jsonDmaapInfo.containsKey("client_role")) {\r
- dmaapInfo.setClientRole(jsonDmaapInfo.getString("client_role"));\r
- }\r
- if (jsonDmaapInfo.containsKey("type")) {\r
- dmaapInfo.setType(jsonDmaapInfo.getString("type"));\r
- }\r
+ dmaapInfo.setLocation(getAsString(jsonDmaapInfo, "location"));\r
+ dmaapInfo.setTopicUrl(getAsString(jsonDmaapInfo, "topic_url"));\r
+ dmaapInfo.setClientId(getAsString(jsonDmaapInfo, "client_id"));\r
+ dmaapInfo.setClientRole(getAsString(jsonDmaapInfo, "client_role"));\r
+ dmaapInfo.setType(getAsString(jsonDmaapInfo, "type"));\r