e.printStackTrace();
System.exit(-1);
}
}
private void addDeviceType(String deviceType) throws IoTFCReSTException {
<BUG>try {
System.out.println("<-- Adding device type " + deviceType);

JsonObject joDt = apiClient.getDeviceType(deviceType);
if (!joDt.isJsonNull()) {
return;</BUG>
}

e.printStackTrace();
System.exit(-1);
}
}
private void addDeviceType(String deviceType) throws IoTFCReSTException {
try {
System.out.println("<-- Checking if device type "+deviceType +" already created in Watson IoT Platform");
boolean exist = apiClient.isDeviceTypeExist(deviceType);
if (!exist) {
System.out.println("<-- Adding device type "+deviceType + " now..");
apiClient.addDeviceType(deviceType, deviceType, null, null);
}
