Program: 174440
Project: 174440
Buggy source:
/** 
 * .
 * @param from query parameter from
 * @param to query parameter to
 * @param uuid query parameter uuid
 * @return JSON formatted response
 */
@GET public String getAnswerNccoResponce(@QueryParam("String_Node_Str") String from,@QueryParam("String_Node_Str") String to,@QueryParam("String_Node_Str") String uuid) throws NotFoundException, MalformedURLException {
  LOGGER.debug("String_Node_Str",uuid);
  NexMoCall call=conversationService.getInboundCallWithConversationId(uuid);
  if (null == call) {
    NexMoCall newObj=new NexMoCall(uuid,uuid);
    newObj.setStatus(CallStatus.STARTED);
    newObj.setDirection(CallDirection.INBOUND);
    LOGGER.debug("String_Node_Str",newObj.getUuid());
    conversationService.updateCall(newObj);
    call=newObj.clone();
  }
  String conversationId="String_Node_Str" + UUID.randomUUID().toString();
  String taskId=UUID.randomUUID().toString();
  CreateTaskArg taskReq=new CreateTaskArg();
  taskReq.setId(taskId);
  taskReq.setRouterId(configuration.getCommsRouterId());
  URI uri=UriBuilder.fromPath(configuration.getCallbackBaseUrl()).path("String_Node_Str").path(taskId).queryParam("String_Node_Str",conversationId).build();
  taskReq.setCallbackUrl(uri.toURL());
  taskReq.setQueueId(queueId);
  AttributeGroupDto requirements=new AttributeGroupDto();
  requirements.put("String_Node_Str",new StringAttributeValueDto("String_Node_Str"));
  requirements.put("String_Node_Str",new StringAttributeValueDto("String_Node_Str"));
  requirements.put("String_Node_Str",new LongAttributeValueDto(20));
  taskReq.setRequirements(requirements);
  TaskDto task=null;
  try {
    task=taskServiceClient.create(taskReq);
  }
 catch (  NotFoundException e) {
    e.printStackTrace();
  }
catch (  Exception ex) {
    ex.printStackTrace();
  }
  if (null == task) {
    TalkNcco talkNccoErr=new TalkNcco("String_Node_Str");
    talkNccoErr.setLoop(1);
    NccoResponseBuilder builder=new NccoResponseBuilder();
    builder.appendNcco(talkNccoErr);
    NccoResponse nccoResponse=builder.getValue();
    return nccoResponse.toJson();
  }
  conversationService.createConversation(conversationId,call,taskId);
  UpdateNexMoConversationArg updateArg=new UpdateNexMoConversationArg(NexMoConversationStatus.WAITING);
  conversationService.updateConversation(conversationId,updateArg);
  TalkNcco talkNcco=new TalkNcco("String_Node_Str");
  talkNcco.setLoop(1);
  ConversationNccoEx convNcco=new ConversationNccoEx(conversationId);
  convNcco.setMusicOnHoldUrl(configuration.getMusicOnHoldUrl());
  convNcco.setStartOnEnter(false);
  convNcco.setRecord(false);
  NccoResponseBuilder builder=new NccoResponseBuilder();
  builder.appendNcco(talkNcco);
  builder.appendNcco(convNcco);
  NccoResponse nccoResponse=builder.getValue();
  return nccoResponse.toJson();
}

Fixed version (ground truth):
/** 
 * .
 * @param from query parameter from
 * @param to query parameter to
 * @param uuid query parameter uuid
 * @return JSON formatted response
 */
@GET public String getAnswerNccoResponce(@QueryParam("String_Node_Str") String from,@QueryParam("String_Node_Str") String to,@QueryParam("String_Node_Str") String uuid) throws NotFoundException, MalformedURLException {
  LOGGER.debug("String_Node_Str",uuid);
  NexMoCall call=conversationService.getInboundCallWithConversationId(uuid);
  if (null == call) {
    NexMoCall newObj=new NexMoCall(uuid,uuid);
    newObj.setStatus(CallStatus.STARTED);
    newObj.setDirection(CallDirection.INBOUND);
    LOGGER.debug("String_Node_Str",newObj.getUuid());
    conversationService.updateCall(newObj);
    call=newObj.clone();
  }
  String conversationId="String_Node_Str" + UUID.randomUUID().toString();
  CreateTaskArg taskReq=new CreateTaskArg();
  RouterObjectId taskId=new RouterObjectId(UUID.randomUUID().toString(),configuration.getCommsRouterId());
  URI uri=UriBuilder.fromPath(configuration.getCallbackBaseUrl()).path("String_Node_Str").path(taskId.getId()).queryParam("String_Node_Str",conversationId).build();
  taskReq.setCallbackUrl(uri.toURL());
  taskReq.setQueueId(queueId);
  AttributeGroupDto requirements=new AttributeGroupDto();
  requirements.put("String_Node_Str",new StringAttributeValueDto("String_Node_Str"));
  requirements.put("String_Node_Str",new StringAttributeValueDto("String_Node_Str"));
  requirements.put("String_Node_Str",new LongAttributeValueDto(20));
  taskReq.setRequirements(requirements);
  TaskDto task=null;
  try {
    task=taskServiceClient.put(taskReq,taskId);
  }
 catch (  NotFoundException e) {
    e.printStackTrace();
  }
catch (  Exception ex) {
    ex.printStackTrace();
  }
  if (null == task) {
    TalkNcco talkNccoErr=new TalkNcco("String_Node_Str");
    talkNccoErr.setLoop(1);
    NccoResponseBuilder builder=new NccoResponseBuilder();
    builder.appendNcco(talkNccoErr);
    NccoResponse nccoResponse=builder.getValue();
    return nccoResponse.toJson();
  }
  conversationService.createConversation(conversationId,call,taskId.getId());
  UpdateNexMoConversationArg updateArg=new UpdateNexMoConversationArg(NexMoConversationStatus.WAITING);
  conversationService.updateConversation(conversationId,updateArg);
  TalkNcco talkNcco=new TalkNcco("String_Node_Str");
  talkNcco.setLoop(1);
  ConversationNccoEx convNcco=new ConversationNccoEx(conversationId);
  convNcco.setMusicOnHoldUrl(configuration.getMusicOnHoldUrl());
  convNcco.setStartOnEnter(false);
  convNcco.setRecord(false);
  NccoResponseBuilder builder=new NccoResponseBuilder();
  builder.appendNcco(talkNcco);
  builder.appendNcco(convNcco);
  NccoResponse nccoResponse=builder.getValue();
  return nccoResponse.toJson();
}