if (null != taskConfig.firstSchedule) {
taskConfig.nextRunTime = taskConfig.firstSchedule.getTime();
}
String json = sendRequest(url.toString(), ApiManager.mapToApi(taskConfig, null));
ResponsePojo internal_responsePojo = ResponsePojo.fromApi(json, ResponsePojo.class);
ResponseObject internal_ro = internal_responsePojo.getResponse();
response = shallowCopy(response, internal_ro);
if (response.isSuccess()) {
JsonPrimitive retValObj = (JsonPrimitive)internal_responsePojo.getData();
retVal = new ObjectId(retValObj.getAsString());
}
}
catch (Exception e) {
response.setSuccess(false);