Program: 40932
Project: 40932
Buggy source:
public Response invokePlan(final String plan,final UriInfo uriInfo,final List<TParameter> parameters,final CSARID csarId,final QName serviceTemplate,final Long serviceTemplateInstanceId,final PlanTypes... planTypes){
  if (parameters == null) {
    return Response.status(Status.BAD_REQUEST).build();
  }
  if (!hasPlan(csarId,planTypes,plan)) {
    logger.info("String_Node_Str" + plan + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + plan + "String_Node_Str");
  }
  logger.info("String_Node_Str",plan,serviceTemplate,csarId);
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str",JsonUtil.writeValueAsString(parameters));
  }
  if (serviceTemplateInstanceId != null) {
    String url=Settings.CONTAINER_INSTANCEDATA_API + serviceTemplateInstanceId;
    url=url.replace("String_Node_Str",csarId.getFileName());
    url=url.replace("String_Node_Str",UriComponent.encode(serviceTemplate.toString(),UriComponent.Type.PATH_SEGMENT));
    final URI uri=UriUtil.encode(URI.create(url));
    final TParameter param=new TParameter();
    param.setName("String_Node_Str");
    param.setRequired(TBoolean.fromValue("String_Node_Str"));
    param.setType("String_Node_Str");
    param.setValue(uri.toString());
    parameters.add(param);
  }
  final TPlan p=getPlan(plan,csarId);
  final String correlationId=invokePlan(csarId,serviceTemplate,serviceTemplateInstanceId,p,parameters);
  final URI location=UriUtil.encode(uriInfo.getAbsolutePathBuilder().path(correlationId).build());
  return Response.created(location).build();
}

Fixed version (ground truth):
public Response invokePlan(final String plan,final UriInfo uriInfo,final List<TParameter> parameters,final CSARID csarId,final QName serviceTemplate,final Long serviceTemplateInstanceId,final PlanTypes... planTypes){
  if (parameters == null) {
    return Response.status(Status.BAD_REQUEST).build();
  }
  if (!hasPlan(csarId,planTypes,plan)) {
    logger.info("String_Node_Str" + plan + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + plan + "String_Node_Str");
  }
  logger.info("String_Node_Str",plan,serviceTemplate,csarId);
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str",JsonUtil.writeValueAsString(parameters));
  }
  if (serviceTemplateInstanceId != null) {
    String url=Settings.CONTAINER_INSTANCEDATA_API + "String_Node_Str" + serviceTemplateInstanceId;
    url=url.replace("String_Node_Str",csarId.getFileName());
    url=url.replace("String_Node_Str",UriComponent.encode(serviceTemplate.toString(),UriComponent.Type.PATH_SEGMENT));
    final URI uri=UriUtil.encode(URI.create(url));
    final TParameter param=new TParameter();
    param.setName("String_Node_Str");
    param.setRequired(TBoolean.fromValue("String_Node_Str"));
    param.setType("String_Node_Str");
    param.setValue(uri.toString());
    parameters.add(param);
  }
  final TPlan p=getPlan(plan,csarId);
  final String correlationId=invokePlan(csarId,serviceTemplate,serviceTemplateInstanceId,p,parameters);
  final URI location=UriUtil.encode(uriInfo.getAbsolutePathBuilder().path(correlationId).build());
  return Response.created(location).build();
}