nus-yam/ex-repair huggingface dataset:
Program: 40898
Project: 40898
Buggy source:
@Test public void createShouldRespectExistingId(){
  ClassWithStringId source=new ClassWithStringId();
  source.id="String_Node_Str";
  operations.insert(source);
  assertThat(operations.findById("String_Node_Str",ClassWithStringId.class),is(source));
}

Fixed version (ground truth):
@Test public void createShouldRespectExistingId(){
  ClassWithStringId source=new ClassWithStringId();
  source.id="String_Node_Str";
  operations.insert(source);
  assertThat(operations.findById("String_Node_Str",ClassWithStringId.class),is(Optional.of(source)));
}
Program: 40899
Project: 40899
Buggy source:
@Test public void updateShouldRespectTypeInformation(){
  operations.insert("String_Node_Str",FOO_ONE);
  operations.update("String_Node_Str",BAR_ONE);
  assertThat(operations.findById("String_Node_Str",Foo.class),is(FOO_ONE));
}

Fixed version (ground truth):
@Test public void updateShouldRespectTypeInformation(){
  operations.insert("String_Node_Str",FOO_ONE);
  operations.update("String_Node_Str",BAR_ONE);
  assertThat(operations.findById("String_Node_Str",Foo.class),is(Optional.of(FOO_ONE)));
}
Program: 40900
Project: 40900
Buggy source:
@Test public void findByIdShouldReturnObjectWithMatchingIdAndType(){
  operations.insert("String_Node_Str",FOO_ONE);
  assertThat(operations.findById("String_Node_Str",Foo.class),is(FOO_ONE));
}

Fixed version (ground truth):
@Test public void findByIdShouldReturnObjectWithMatchingIdAndType(){
  operations.insert("String_Node_Str",FOO_ONE);
  assertThat(operations.findById("String_Node_Str",Foo.class),is(Optional.of(FOO_ONE)));
}
Program: 40905
Project: 40905
Buggy source:
public String findInstanceIDVar(final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str";
  final List<String> varNames=getMainVariableNames();
  for (  final String varName : varNames) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}

Fixed version (ground truth):
public String findInstanceIDVar(final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + ModelUtils.makeValidNCName(templateId)+ "String_Node_Str";
  final List<String> varNames=getMainVariableNames();
  for (  final String varName : varNames) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}
Program: 40906
Project: 40906
Buggy source:
public String findInstanceURLVar(final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str";
  for (  final String varName : getMainVariableNames()) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}

Fixed version (ground truth):
public String findInstanceURLVar(final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + ModelUtils.makeValidNCName(templateId)+ "String_Node_Str";
  for (  final String varName : getMainVariableNames()) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}
Program: 40907
Project: 40907
Buggy source:
public boolean addInstanceIDVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceIDVarKeyword + "String_Node_Str"+ templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}

Fixed version (ground truth):
public boolean addInstanceIDVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceIDVarKeyword + "String_Node_Str"+ ModelUtils.makeValidNCName(templateId)+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}
Program: 40908
Project: 40908
Buggy source:
private String findInstanceIdVarName(final List<String> varNames,final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + InstanceURLVarKeyword + "String_Node_Str"+ templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str";
  for (  final String varName : varNames) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}

Fixed version (ground truth):
private String findInstanceIdVarName(final List<String> varNames,final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + InstanceURLVarKeyword + "String_Node_Str"+ ModelUtils.makeValidNCName(templateId)+ "String_Node_Str";
  for (  final String varName : varNames) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}
Program: 40909
Project: 40909
Buggy source:
/** 
 * Adds a NodeInstanceID Variable to the given TemplatePlan
 * @param templatePlan a TemplatePlan
 * @return true iff adding a NodeInstanceID Var was successful
 */
public boolean addInstanceURLVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceURLVarKeyword + "String_Node_Str"+ templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}

Fixed version (ground truth):
/** 
 * Adds a NodeInstanceID Variable to the given TemplatePlan
 * @param templatePlan a TemplatePlan
 * @return true iff adding a NodeInstanceID Var was successful
 */
public boolean addInstanceURLVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceURLVarKeyword + "String_Node_Str"+ ModelUtils.makeValidNCName(templateId)+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}
Program: 40912
Project: 40912
Buggy source:
public String createInstanceIDVar(final BPELPlanContext context,final String templateId){
  final String instanceURLVarName=(context.getRelationshipTemplate() == null ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str"+ context.getIdForNames();
  final QName stringTypeDeclId=context.importQName(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  if (!context.addGlobalVariable(instanceURLVarName,BPELPlan.VariableType.TYPE,stringTypeDeclId)) {
    return null;
  }
  return instanceURLVarName;
}

Fixed version (ground truth):
public String createInstanceIDVar(final BPELPlanContext context,final String templateId){
  final String instanceURLVarName=(context.getRelationshipTemplate() == null ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + ModelUtils.makeValidNCName(templateId)+ "String_Node_Str"+ context.getIdForNames();
  final QName stringTypeDeclId=context.importQName(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  if (!context.addGlobalVariable(instanceURLVarName,BPELPlan.VariableType.TYPE,stringTypeDeclId)) {
    return null;
  }
  return instanceURLVarName;
}
Program: 40913
Project: 40913
Buggy source:
public String createInstanceURLVar(final BPELPlanContext context,final String templateId){
  final String instanceURLVarName=(context.getRelationshipTemplate() == null ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str"+ context.getIdForNames();
  final QName stringTypeDeclId=context.importQName(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  if (!context.addGlobalVariable(instanceURLVarName,BPELPlan.VariableType.TYPE,stringTypeDeclId)) {
    return null;
  }
  return instanceURLVarName;
}

Fixed version (ground truth):
public String createInstanceURLVar(final BPELPlanContext context,final String templateId){
  final String instanceURLVarName=(context.getRelationshipTemplate() == null ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str" + ModelUtils.makeValidNCName(templateId)+ "String_Node_Str"+ context.getIdForNames();
  final QName stringTypeDeclId=context.importQName(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  if (!context.addGlobalVariable(instanceURLVarName,BPELPlan.VariableType.TYPE,stringTypeDeclId)) {
    return null;
  }
  return instanceURLVarName;
}
Program: 40914
Project: 40914
Buggy source:
private String createStateVar(final BPELPlanContext context,final String templateId){
  final String stateVarName=templateId.replace("String_Node_Str","String_Node_Str") + "String_Node_Str" + context.getIdForNames();
  final QName stringTypeDeclId=context.importQName(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  if (!context.addGlobalVariable(stateVarName,BPELPlan.VariableType.TYPE,stringTypeDeclId)) {
    return null;
  }
  return stateVarName;
}

Fixed version (ground truth):
private String createStateVar(final BPELPlanContext context,final String templateId){
  final String stateVarName=ModelUtils.makeValidNCName(templateId) + "String_Node_Str" + context.getIdForNames();
  final QName stringTypeDeclId=context.importQName(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  if (!context.addGlobalVariable(stateVarName,BPELPlan.VariableType.TYPE,stringTypeDeclId)) {
    return null;
  }
  return stateVarName;
}
Program: 40916
Project: 40916
Buggy source:
public static SelfServiceOptionWrapper generateSelfServiceOption(final BPELPlan buildPlan) throws IOException {
  final String id=String.valueOf(System.currentTimeMillis());
  final ApplicationOption option=new ApplicationOption();
  final File tmpDir=new File(System.getProperty("String_Node_Str") + System.getProperty("String_Node_Str") + Long.toString(System.currentTimeMillis()));
  tmpDir.mkdir();
  final File planInputMessageFile=new File(tmpDir,"String_Node_Str" + id + "String_Node_Str");
  option.setName("String_Node_Str");
  option.setId(id);
  option.setIconUrl("String_Node_Str");
  option.setDescription("String_Node_Str");
  option.setPlanServiceName(Util.getBuildPlanServiceName(buildPlan.getDeploymentDeskriptor()).getLocalPart());
  option.setPlanInputMessageUrl("String_Node_Str" + id + "String_Node_Str");
  Util.writePlanInputMessageInstance(buildPlan,planInputMessageFile);
  return new SelfServiceOptionWrapper(option,planInputMessageFile);
}

Fixed version (ground truth):
public static SelfServiceOptionWrapper generateSelfServiceOption(final BPELPlan buildPlan) throws IOException {
  final String id=String.valueOf(System.currentTimeMillis());
  final ApplicationOption option=new ApplicationOption();
  final File tmpDir=new File(System.getProperty("String_Node_Str") + System.getProperty("String_Node_Str") + Long.toString(System.currentTimeMillis()));
  tmpDir.mkdir();
  final File planInputMessageFile=new File(tmpDir,"String_Node_Str" + id + "String_Node_Str");
  option.setName(Util.getBuildPlanServiceName(buildPlan.getDeploymentDeskriptor()).getLocalPart());
  option.setId(id);
  option.setIconUrl("String_Node_Str");
  option.setDescription("String_Node_Str");
  option.setPlanServiceName(Util.getBuildPlanServiceName(buildPlan.getDeploymentDeskriptor()).getLocalPart());
  option.setPlanInputMessageUrl("String_Node_Str" + id + "String_Node_Str");
  Util.writePlanInputMessageInstance(buildPlan,planInputMessageFile);
  return new SelfServiceOptionWrapper(option,planInputMessageFile);
}
Program: 40917
Project: 40917
Buggy source:
@GET @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response getDeploymentTests(@PathParam("String_Node_Str") final String csar,@PathParam("String_Node_Str") final String servicetemplate,@PathParam("String_Node_Str") final Integer id){
  final CSARContent csarContent=this.csarService.findById(csar);
  if (!this.csarService.hasServiceTemplate(csarContent.getCSARID(),servicetemplate)) {
    logger.info("String_Node_Str" + servicetemplate + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + servicetemplate + "String_Node_Str");
  }
  final ServiceTemplateInstance sti=new ServiceTemplateInstanceRepository().find(Long.valueOf(id)).orElse(null);
  if (sti == null) {
    logger.info("String_Node_Str" + id + "String_Node_Str"+ servicetemplate+ "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + id + "String_Node_Str"+ servicetemplate+ "String_Node_Str");
  }
  final List<ResourceDecorator> items=sti.getDeploymentTests().stream().map(v -> {
    final ResourceDecorator decorator=new ResourceDecorator();
    decorator.setObject(v);
    decorator.add(Link.fromUri(UriUtil.encode(this.uriInfo.getAbsolutePathBuilder().path(String.valueOf(v.getId())).build())).rel("String_Node_Str").build());
    return decorator;
  }
).collect(Collectors.toList());
  final ResourceDecorator response=new ResourceDecorator();
  response.setObject(items);
  response.add(Link.fromUri(UriUtil.encode(this.uriInfo.getAbsolutePath())).rel("String_Node_Str").build());
  return Response.ok(response).build();
}

Fixed version (ground truth):
@GET @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response getDeploymentTests(@PathParam("String_Node_Str") final Integer id){
  final CSARContent csarContent=this.csarService.findById(this.csarId);
  if (!this.csarService.hasServiceTemplate(csarContent.getCSARID(),this.serviceTemplateId)) {
    logger.info("String_Node_Str" + this.serviceTemplateId + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + this.serviceTemplateId + "String_Node_Str");
  }
  final ServiceTemplateInstance sti=new ServiceTemplateInstanceRepository().find(Long.valueOf(id)).orElse(null);
  if (sti == null) {
    logger.info("String_Node_Str" + id + "String_Node_Str"+ this.serviceTemplateId+ "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + id + "String_Node_Str"+ this.serviceTemplateId+ "String_Node_Str");
  }
  final List<ResourceDecorator> items=sti.getDeploymentTests().stream().map(v -> {
    final ResourceDecorator decorator=new ResourceDecorator();
    decorator.setObject(v);
    decorator.add(Link.fromUri(UriUtil.encode(this.uriInfo.getAbsolutePathBuilder().path(String.valueOf(v.getId())).build())).rel("String_Node_Str").build());
    return decorator;
  }
).collect(Collectors.toList());
  final ResourceDecorator response=new ResourceDecorator();
  response.setObject(items);
  response.add(Link.fromUri(UriUtil.encode(this.uriInfo.getAbsolutePath())).rel("String_Node_Str").build());
  return Response.ok(response).build();
}
Program: 40918
Project: 40918
Buggy source:
@GET @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response getDeploymentTest(@PathParam("String_Node_Str") final String csar,@PathParam("String_Node_Str") final String servicetemplate,@PathParam("String_Node_Str") final Integer id,@PathParam("String_Node_Str") final Integer deploymenttest){
  final CSARContent csarContent=this.csarService.findById(csar);
  if (!this.csarService.hasServiceTemplate(csarContent.getCSARID(),servicetemplate)) {
    logger.info("String_Node_Str" + servicetemplate + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + servicetemplate + "String_Node_Str");
  }
  final ServiceTemplateInstance sti=new ServiceTemplateInstanceRepository().find(Long.valueOf(id)).orElse(null);
  if (sti == null) {
    logger.info("String_Node_Str" + id + "String_Node_Str"+ servicetemplate+ "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + id + "String_Node_Str"+ servicetemplate+ "String_Node_Str");
  }
  final DeploymentTest object=new DeploymentTestRepository().find(Long.valueOf(deploymenttest)).orElse(null);
  if (object == null) {
    throw new NotFoundException();
  }
  final ResourceDecorator response=new ResourceDecorator();
  response.setObject(object);
  response.add(Link.fromUri(UriUtil.encode(this.uriInfo.getAbsolutePath())).rel("String_Node_Str").build());
  return Response.ok(response).build();
}

Fixed version (ground truth):
@GET @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response getDeploymentTest(@PathParam("String_Node_Str") final Integer id,@PathParam("String_Node_Str") final Integer deploymenttest){
  final CSARContent csarContent=this.csarService.findById(this.csarId);
  if (!this.csarService.hasServiceTemplate(csarContent.getCSARID(),this.serviceTemplateId)) {
    logger.info("String_Node_Str" + this.serviceTemplateId + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + this.serviceTemplateId + "String_Node_Str");
  }
  final ServiceTemplateInstance sti=new ServiceTemplateInstanceRepository().find(Long.valueOf(id)).orElse(null);
  if (sti == null) {
    logger.info("String_Node_Str" + id + "String_Node_Str"+ this.serviceTemplateId+ "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + id + "String_Node_Str"+ this.serviceTemplateId+ "String_Node_Str");
  }
  final DeploymentTest object=new DeploymentTestRepository().find(Long.valueOf(deploymenttest)).orElse(null);
  if (object == null) {
    throw new NotFoundException();
  }
  final ResourceDecorator response=new ResourceDecorator();
  response.setObject(object);
  response.add(Link.fromUri(UriUtil.encode(this.uriInfo.getAbsolutePath())).rel("String_Node_Str").build());
  return Response.ok(response).build();
}
Program: 40919
Project: 40919
Buggy source:
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response createDeploymentTest(@PathParam("String_Node_Str") final String csar,@PathParam("String_Node_Str") final String servicetemplate,@PathParam("String_Node_Str") final Integer id){
  final CSARContent csarContent=this.csarService.findById(csar);
  if (!this.csarService.hasServiceTemplate(csarContent.getCSARID(),servicetemplate)) {
    logger.info("String_Node_Str" + servicetemplate + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + servicetemplate + "String_Node_Str");
  }
  final ServiceTemplateInstance sti=new ServiceTemplateInstanceRepository().find(Long.valueOf(id)).orElse(null);
  if (sti == null) {
    logger.info("String_Node_Str" + id + "String_Node_Str"+ servicetemplate+ "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + id + "String_Node_Str"+ servicetemplate+ "String_Node_Str");
  }
  final DeploymentTest result=this.deploymentTestService.run(csarContent.getCSARID(),sti);
  final URI location=this.uriInfo.getAbsolutePathBuilder().path(String.valueOf(result.getId())).build();
  return Response.created(UriUtil.encode(location)).build();
}

Fixed version (ground truth):
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response createDeploymentTest(@PathParam("String_Node_Str") final Integer id){
  final CSARContent csarContent=this.csarService.findById(this.csarId);
  if (!this.csarService.hasServiceTemplate(csarContent.getCSARID(),this.serviceTemplateId)) {
    logger.info("String_Node_Str" + this.serviceTemplateId + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + this.serviceTemplateId + "String_Node_Str");
  }
  final ServiceTemplateInstance sti=new ServiceTemplateInstanceRepository().find(Long.valueOf(id)).orElse(null);
  if (sti == null) {
    logger.info("String_Node_Str" + id + "String_Node_Str"+ this.serviceTemplateId+ "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + id + "String_Node_Str"+ this.serviceTemplateId+ "String_Node_Str");
  }
  final DeploymentTest result=this.deploymentTestService.run(csarContent.getCSARID(),sti);
  final URI location=this.uriInfo.getAbsolutePathBuilder().path(String.valueOf(result.getId())).build();
  return Response.created(UriUtil.encode(location)).build();
}
Program: 40921
Project: 40921
Buggy source:
private boolean isRunning(final BPELPlanContext context,final AbstractNodeTemplate nodeTemplate){
  final Variable state=context.getPropertyVariable(nodeTemplate,"String_Node_Str");
  if (BPELPlanContext.getVariableContent(state,context).equals("String_Node_Str")) {
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
private boolean isRunning(final BPELPlanContext context,final AbstractNodeTemplate nodeTemplate){
  final Variable state=context.getPropertyVariable(nodeTemplate,"String_Node_Str");
  if (state != null) {
    if (BPELPlanContext.getVariableContent(state,context).equals("String_Node_Str")) {
      return true;
    }
  }
  return false;
}
Program: 40922
Project: 40922
Buggy source:
/** 
 * Constructor
 * @param nodeTemplate a JAXB TNodeTemplate
 * @param definitions a DefinitionsImpl
 */
public NodeTemplateImpl(final TNodeTemplate nodeTemplate,final DefinitionsImpl definitions){
  this.nodeTemplate=nodeTemplate;
  this.definitions=definitions;
  this.ingoingRelations=new ArrayList<>();
  this.outgoingRelations=new ArrayList<>();
  this.requirements=new ArrayList<>();
  this.capabilities=new ArrayList<>();
  this.das=new ArrayList<>();
  this.policies=new ArrayList<>();
  if (this.nodeTemplate.getProperties() != null) {
    this.properties=new PropertiesImpl(this.nodeTemplate.getProperties().getAny());
  }
  setUpCapabilities();
  setUpRequirements();
  setUpDeploymentArtifacts();
  setUpPolicies();
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param nodeTemplate a JAXB TNodeTemplate
 * @param definitions a DefinitionsImpl
 */
public NodeTemplateImpl(final TNodeTemplate nodeTemplate,final DefinitionsImpl definitions){
  this.nodeTemplate=nodeTemplate;
  this.definitions=definitions;
  this.ingoingRelations=new ArrayList<>();
  this.outgoingRelations=new ArrayList<>();
  this.requirements=new ArrayList<>();
  this.capabilities=new ArrayList<>();
  this.das=new ArrayList<>();
  this.policies=new ArrayList<>();
  if (this.nodeTemplate.getProperties() != null && this.nodeTemplate.getProperties().getAny() != null) {
    this.properties=new PropertiesImpl(this.nodeTemplate.getProperties().getAny());
  }
  setUpCapabilities();
  setUpRequirements();
  setUpDeploymentArtifacts();
  setUpPolicies();
}
Program: 40923
Project: 40923
Buggy source:
/** 
 * Constructor
 * @param properties an Object of class ElementNSImpl
 */
public PropertiesImpl(final Object properties){
  this.props=properties;
  if (properties.getClass().getName().equals("String_Node_Str")) {
    this.isDOM=true;
  }
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param properties an Object of class ElementNSImpl
 */
public PropertiesImpl(final Object properties){
  if (properties == null) {
    throw new RuntimeException("String_Node_Str");
  }
  this.props=properties;
  if (properties.getClass().getName().equals("String_Node_Str")) {
    this.isDOM=true;
  }
}
Program: 40925
Project: 40925
Buggy source:
public boolean addInstanceIDVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceIDVarKeyword + "String_Node_Str"+ templateId+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}

Fixed version (ground truth):
public boolean addInstanceIDVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceIDVarKeyword + "String_Node_Str"+ templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}
Program: 40926
Project: 40926
Buggy source:
private String findInstanceIdVarName(final List<String> varNames,final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + InstanceURLVarKeyword + "String_Node_Str"+ templateId+ "String_Node_Str";
  for (  final String varName : varNames) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}

Fixed version (ground truth):
private String findInstanceIdVarName(final List<String> varNames,final String templateId,final boolean isNode){
  final String instanceURLVarName=(isNode ? "String_Node_Str" : "String_Node_Str") + InstanceURLVarKeyword + "String_Node_Str"+ templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str";
  for (  final String varName : varNames) {
    if (varName.contains(instanceURLVarName)) {
      return varName;
    }
  }
  return null;
}
Program: 40927
Project: 40927
Buggy source:
/** 
 * Adds a NodeInstanceID Variable to the given TemplatePlan
 * @param templatePlan a TemplatePlan
 * @return true iff adding a NodeInstanceID Var was successful
 */
public boolean addInstanceURLVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceURLVarKeyword + "String_Node_Str"+ templateId+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}

Fixed version (ground truth):
/** 
 * Adds a NodeInstanceID Variable to the given TemplatePlan
 * @param templatePlan a TemplatePlan
 * @return true iff adding a NodeInstanceID Var was successful
 */
public boolean addInstanceURLVarToTemplatePlan(final BPELScopeActivity templatePlan){
  final String xsdPrefix="String_Node_Str" + System.currentTimeMillis();
  final String xsdNamespace="String_Node_Str";
  this.bpelProcessHandler.addNamespaceToBPELDoc(xsdPrefix,xsdNamespace,templatePlan.getBuildPlan());
  String templateId="String_Node_Str";
  String prefix="String_Node_Str";
  if (templatePlan.getNodeTemplate() != null) {
    templateId=templatePlan.getNodeTemplate().getId();
    prefix="String_Node_Str";
  }
 else {
    templateId=templatePlan.getRelationshipTemplate().getId();
    prefix="String_Node_Str";
  }
  final String instanceIdVarName=prefix + InstanceURLVarKeyword + "String_Node_Str"+ templateId.replace("String_Node_Str","String_Node_Str")+ "String_Node_Str"+ System.currentTimeMillis();
  return this.bpelProcessHandler.addVariable(instanceIdVarName,VariableType.TYPE,new QName(xsdNamespace,"String_Node_Str",xsdPrefix),templatePlan.getBuildPlan());
}
Program: 40930
Project: 40930
Buggy source:
/** 
 * Initializes Properties inside the given PropertyMap of the given TemplateBuildPlan
 * @param map a PropertyMap to save the mappings to
 * @param templatePlan the TemplateBuildPlan to initialize its properties
 */
public void initializePropertiesAsVariables(final PropertyMap map,final BPELScopeActivity templatePlan){
  if (templatePlan.getRelationshipTemplate() != null) {
    this.initPropsAsVarsInRelationship(map,templatePlan);
  }
 else {
    this.initPropsAsVarsInNode(map,templatePlan);
  }
}

Fixed version (ground truth):
/** 
 * Initializes Properties inside the given PropertyMap of the given TemplateBuildPlan
 * @param map a PropertyMap to save the mappings to
 * @param templatePlan the TemplateBuildPlan to initialize its properties
 */
public void initializePropertiesAsVariables(final PropertyMap map,final BPELScopeActivity templatePlan){
  if (templatePlan.getRelationshipTemplate() != null) {
    initPropsAsVarsInRelationship(map,templatePlan);
  }
 else {
    initPropsAsVarsInNode(map,templatePlan);
  }
}
Program: 40931
Project: 40931
Buggy source:
@Override public void start(final BundleContext bundleContext) throws Exception {
  logger.info("String_Node_Str",bundleContext.getBundle().getSymbolicName(),bundleContext.getBundle().getVersion());
  context=bundleContext;
  this.services.add(bundleContext.registerService(RootController.class,new RootController(),null));
  configurator(bundleContext);
  this.services.add(bundleContext.registerService(ApplicationConfiguration.class,this,null));
  this.services.add(bundleContext.registerService(CorsFilter.class,new CorsFilter(),null));
  this.services.add(bundleContext.registerService(PlainTextMessageBodyWriter.class,new PlainTextMessageBodyWriter(),null));
  this.services.add(bundleContext.registerService(ObjectMapperProvider.class,new ObjectMapperProvider(),null));
  this.services.add(bundleContext.registerService(JacksonFeature.class,new JacksonFeature(),null));
  this.services.add(bundleContext.registerService(MultiPartFeature.class,new MultiPartFeature(),null));
  this.services.add(bundleContext.registerService(JAXBContextProvider.class,new JAXBContextProvider(),null));
}

Fixed version (ground truth):
@Override public void start(final BundleContext bundleContext) throws Exception {
  logger.info("String_Node_Str",bundleContext.getBundle().getSymbolicName(),bundleContext.getBundle().getVersion());
  context=bundleContext;
  this.services.add(bundleContext.registerService(RootController.class,new RootController(),null));
  configurator(bundleContext);
  this.services.add(bundleContext.registerService(ApplicationConfiguration.class,this,null));
  this.services.add(bundleContext.registerService(CorsFilter.class,new CorsFilter(),null));
  this.services.add(bundleContext.registerService(PlainTextMessageBodyWriter.class,new PlainTextMessageBodyWriter(),null));
  this.services.add(bundleContext.registerService(URI2XMLMessageBodyWriter.class,new URI2XMLMessageBodyWriter(),null));
  this.services.add(bundleContext.registerService(ObjectMapperProvider.class,new ObjectMapperProvider(),null));
  this.services.add(bundleContext.registerService(JacksonFeature.class,new JacksonFeature(),null));
  this.services.add(bundleContext.registerService(MultiPartFeature.class,new MultiPartFeature(),null));
  this.services.add(bundleContext.registerService(JAXBContextProvider.class,new JAXBContextProvider(),null));
}
Program: 40933
Project: 40933
Buggy source:
@Path("String_Node_Str") public NodeTemplateInstanceController getInstances(@ApiParam(hidden=true) @PathParam("String_Node_Str") final String nodeTemplateId){
  if (!this.nodeTemplateService.hasNodeTemplate(csarId,serviceTemplateId,nodeTemplateId)) {
    logger.info("String_Node_Str" + nodeTemplateId + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + nodeTemplateId + "String_Node_Str");
  }
  NodeTemplateInstanceController child=new NodeTemplateInstanceController(instanceService);
  this.resourceContext.initResource(child);
  return child;
}

Fixed version (ground truth):
@Path("String_Node_Str") public NodeTemplateInstanceController getInstances(@ApiParam(hidden=true) @PathParam("String_Node_Str") final String nodeTemplateId){
  if (!this.nodeTemplateService.hasNodeTemplate(csarId,QName.valueOf(serviceTemplateId),QName.valueOf(nodeTemplateId))) {
    logger.info("String_Node_Str" + nodeTemplateId + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + nodeTemplateId + "String_Node_Str");
  }
  NodeTemplateInstanceController child=new NodeTemplateInstanceController(instanceService);
  this.resourceContext.initResource(child);
  return child;
}
Program: 40934
Project: 40934
Buggy source:
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @ApiOperation(value="String_Node_Str",response=NodeTemplateDTO.class) public Response getNodeTemplate(@PathParam("String_Node_Str") final String nodeTemplateId) throws NotFoundException {
  final NodeTemplateDTO result=this.nodeTemplateService.getNodeTemplateById(csarId,serviceTemplateId,nodeTemplateId);
  result.add(UriUtils.generateSubResourceLink(uriInfo,"String_Node_Str",false,"String_Node_Str"));
  result.add(UriUtils.generateSelfLink(uriInfo));
  return Response.ok(result).build();
}

Fixed version (ground truth):
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @ApiOperation(value="String_Node_Str",response=NodeTemplateDTO.class) public Response getNodeTemplate(@PathParam("String_Node_Str") final String nodeTemplateId) throws NotFoundException {
  final NodeTemplateDTO result=this.nodeTemplateService.getNodeTemplateById(csarId,QName.valueOf(serviceTemplateId),QName.valueOf(nodeTemplateId));
  result.add(UriUtils.generateSubResourceLink(uriInfo,"String_Node_Str",false,"String_Node_Str"));
  result.add(UriUtils.generateSelfLink(uriInfo));
  return Response.ok(result).build();
}
Program: 40935
Project: 40935
Buggy source:
public Collection<NodeTemplateInstance> getNodeTemplateInstances(final QName nodeTemplate){
  logger.debug("String_Node_Str",nodeTemplate);
  return this.nodeTemplateInstanceRepository.findByTemplateId(nodeTemplate);
}

Fixed version (ground truth):
public Collection<NodeTemplateInstance> getNodeTemplateInstances(final QName nodeTemplateQName){
  logger.debug("String_Node_Str",nodeTemplateQName);
  return this.nodeTemplateInstanceRepository.findByTemplateId(nodeTemplateQName);
}
Program: 40936
Project: 40936
Buggy source:
/** 
 * Gets the node template specified by its id
 * @param csarId The id of the CSAR
 * @param serviceTemplateId The id of the service template within the given CSAR
 * @param nodeTemplateId The id of the node template we want to get and that belongs to the specified service template
 * @return The node template specified by the given id
 * @throws NotFoundException If the service template does not contain the specified node template
 */
public NodeTemplateDTO getNodeTemplateById(String csarId,String serviceTemplateId,String nodeTemplateId) throws NotFoundException {
  final CSARContent csarContent=this.csarService.findById(csarId);
  final CSARID idOfCsar=csarContent.getCSARID();
  final QName serviceTemplateQName=QName.valueOf(serviceTemplateId);
  if (!this.toscaEngineService.getNodeTemplatesOfServiceTemplate(idOfCsar,serviceTemplateQName).contains(nodeTemplateId)) {
    logger.info("String_Node_Str" + nodeTemplateId + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + nodeTemplateId + "String_Node_Str");
  }
  return createNodeTemplate(idOfCsar,serviceTemplateQName,nodeTemplateId);
}

Fixed version (ground truth):
/** 
 * Gets the node template specified by its id
 * @param csarId The id of the CSAR
 * @param serviceTemplateQName The QName of the service template within the given CSAR
 * @param nodeTemplateQName The QName of the node template we want to get and that belongs to the specified service template
 * @return The node template specified by the given id
 * @throws NotFoundException If the service template does not contain the specified node template
 */
public NodeTemplateDTO getNodeTemplateById(String csarId,QName serviceTemplateQName,QName nodeTemplateQName) throws NotFoundException {
  final CSARContent csarContent=this.csarService.findById(csarId);
  final CSARID idOfCsar=csarContent.getCSARID();
  if (!this.toscaEngineService.getNodeTemplatesOfServiceTemplate(idOfCsar,serviceTemplateQName).contains(nodeTemplateQName.getLocalPart())) {
    logger.info("String_Node_Str" + nodeTemplateQName + "String_Node_Str");
    throw new NotFoundException("String_Node_Str" + nodeTemplateQName + "String_Node_Str");
  }
  return createNodeTemplate(idOfCsar,serviceTemplateQName,nodeTemplateQName);
}
Program: 40937
Project: 40937
Buggy source:
/** 
 * Gets a collection of node templates associated to a given service template.
 * @param csarId The id of the CSAR
 * @param serviceTemplateId The id of the service template within the given CSAR
 * @return A collection of node templates stored within the given servicetemplate.
 */
public List<NodeTemplateDTO> getNodeTemplatesOfServiceTemplate(String csarId,String serviceTemplateId){
  final CSARContent csarContent=this.csarService.findById(csarId);
  final List<String> nodeTemplateIds=toscaEngineService.getNodeTemplatesOfServiceTemplate(csarContent.getCSARID(),QName.valueOf(serviceTemplateId));
  final List<NodeTemplateDTO> nodeTemplates=Lists.newArrayList();
  NodeTemplateDTO currentNodeTemplate;
  for (  final String id : nodeTemplateIds) {
    currentNodeTemplate=createNodeTemplate(csarContent.getCSARID(),QName.valueOf(serviceTemplateId),id);
    nodeTemplates.add(currentNodeTemplate);
  }
  return nodeTemplates;
}

Fixed version (ground truth):
/** 
 * Gets a collection of node templates associated to a given service template.
 * @param csarId The id of the CSAR
 * @param serviceTemplateQName The QName of the service template within the given CSAR
 * @return A collection of node templates stored within the given servicetemplate.
 */
public List<NodeTemplateDTO> getNodeTemplatesOfServiceTemplate(String csarId,String serviceTemplateQName){
  final CSARContent csarContent=this.csarService.findById(csarId);
  final List<String> nodeTemplateIds=toscaEngineService.getNodeTemplatesOfServiceTemplate(csarContent.getCSARID(),QName.valueOf(serviceTemplateQName));
  final List<NodeTemplateDTO> nodeTemplates=Lists.newArrayList();
  NodeTemplateDTO currentNodeTemplate;
  for (  final String id : nodeTemplateIds) {
    currentNodeTemplate=createNodeTemplate(csarContent.getCSARID(),QName.valueOf(serviceTemplateQName),id);
    nodeTemplates.add(currentNodeTemplate);
  }
  return nodeTemplates;
}
Program: 40938
Project: 40938
Buggy source:
/** 
 * Checks whether the specified service template contains a given node template.
 * @param csarId The id of the CSAR
 * @param serviceTemplateId the id of the service template
 * @param nodeTemplateId the id of the node template to check for
 * @return <code>true</code> when the CSAR contains the service template and theservice template contains the node template, otherwise <code>false</code>
 */
public boolean hasNodeTemplate(String csarId,String serviceTemplateId,String nodeTemplateId){
  return this.getNodeTemplateIdsOfServiceTemplate(csarId,serviceTemplateId).contains(nodeTemplateId);
}

Fixed version (ground truth):
/** 
 * Checks whether the specified service template contains a given node template.
 * @param csarId The id of the CSAR
 * @param serviceTemplateQName the QName of the service template
 * @param nodeTemplateId the QName of the node template to check for
 * @return <code>true</code> when the CSAR contains the service template and theservice template contains the node template, otherwise <code>false</code>
 */
public boolean hasNodeTemplate(String csarId,QName serviceTemplateQName,QName nodeTemplateQName){
  return this.getNodeTemplateIdsOfServiceTemplate(csarId,serviceTemplateQName.toString()).contains(nodeTemplateQName.getLocalPart());
}
Program: 40939
Project: 40939
Buggy source:
private NodeTemplateDTO createNodeTemplate(CSARID csarId,QName serviceTemplateId,String nodeTemplateId){
  final NodeTemplateDTO currentNodeTemplate=new NodeTemplateDTO();
  currentNodeTemplate.setId(nodeTemplateId);
  currentNodeTemplate.setName(nodeTemplateId);
  currentNodeTemplate.setNodeType(this.toscaEngineService.getNodeTypeOfNodeTemplate(csarId,serviceTemplateId,nodeTemplateId).toString());
  return currentNodeTemplate;
}

Fixed version (ground truth):
/** 
 * Creates a new instance of the NodeTemplateDTO class. It fetches the qualified name of node type of the node template.
 * @param csarId
 * @param serviceTemplateQName
 * @param nodeTemplateQName
 * @return
 */
private NodeTemplateDTO createNodeTemplate(CSARID csarId,QName serviceTemplateQName,QName nodeTemplateQName){
  final NodeTemplateDTO currentNodeTemplate=new NodeTemplateDTO();
  currentNodeTemplate.setId(nodeTemplateQName.toString());
  currentNodeTemplate.setName(nodeTemplateQName.toString());
  currentNodeTemplate.setNodeType(this.toscaEngineService.getNodeTypeOfNodeTemplate(csarId,serviceTemplateQName,nodeTemplateQName.getLocalPart()).toString());
  return currentNodeTemplate;
}
Program: 40940
Project: 40940
Buggy source:
/** 
 * Gets a collection of node template ids associated to a given service template.
 * @param csarId The id of the CSAR
 * @param serviceTemplateId the id of the service template within the given CSAR
 * @return A collection of node template ids stored within the given servicetemplate.
 */
private List<String> getNodeTemplateIdsOfServiceTemplate(String csarId,String serviceTemplateId){
  final CSARContent csarContent=this.csarService.findById(csarId);
  return toscaEngineService.getNodeTemplatesOfServiceTemplate(csarContent.getCSARID(),QName.valueOf(serviceTemplateId));
}

Fixed version (ground truth):
/** 
 * Gets a collection of node template ids associated to a given service template.
 * @param csarId The id of the CSAR
 * @param serviceTemplateQName the QName of the service template within the given CSAR
 * @return A collection of node template ids stored within the given servicetemplate.
 */
private List<String> getNodeTemplateIdsOfServiceTemplate(String csarId,String serviceTemplateQName){
  final CSARContent csarContent=this.csarService.findById(csarId);
  return toscaEngineService.getNodeTemplatesOfServiceTemplate(csarContent.getCSARID(),QName.valueOf(serviceTemplateQName));
}
Program: 40941
Project: 40941
Buggy source:
@Override public void start(final BundleContext bundleContext) throws Exception {
  logger.info("String_Node_Str",bundleContext.getBundle().getSymbolicName(),bundleContext.getBundle().getVersion());
  context=bundleContext;
  this.services.add(bundleContext.registerService(RootController.class,new RootController(),null));
  this.configurator(bundleContext);
  this.configureSwagger(bundleContext);
  this.services.add(bundleContext.registerService(ApplicationConfiguration.class,this,null));
  this.services.add(bundleContext.registerService(CorsFilter.class,new CorsFilter(),null));
  this.services.add(bundleContext.registerService(PlainTextMessageBodyWriter.class,new PlainTextMessageBodyWriter(),null));
  this.services.add(bundleContext.registerService(ObjectMapperProvider.class,new ObjectMapperProvider(),null));
  this.services.add(bundleContext.registerService(JacksonFeature.class,new JacksonFeature(),null));
  this.services.add(bundleContext.registerService(MultiPartFeature.class,new MultiPartFeature(),null));
  this.services.add(bundleContext.registerService(JAXBContextProvider.class,new JAXBContextProvider(),null));
}

Fixed version (ground truth):
@Override public void start(final BundleContext bundleContext) throws Exception {
  logger.info("String_Node_Str",bundleContext.getBundle().getSymbolicName(),bundleContext.getBundle().getVersion());
  context=bundleContext;
  this.services.add(bundleContext.registerService(RootController.class,new RootController(),null));
  this.configurator(bundleContext);
  this.services.add(bundleContext.registerService(ApplicationConfiguration.class,this,null));
  this.services.add(bundleContext.registerService(CorsFilter.class,new CorsFilter(),null));
  this.services.add(bundleContext.registerService(PlainTextMessageBodyWriter.class,new PlainTextMessageBodyWriter(),null));
  this.services.add(bundleContext.registerService(ObjectMapperProvider.class,new ObjectMapperProvider(),null));
  this.services.add(bundleContext.registerService(JacksonFeature.class,new JacksonFeature(),null));
  this.services.add(bundleContext.registerService(MultiPartFeature.class,new MultiPartFeature(),null));
  this.services.add(bundleContext.registerService(JAXBContextProvider.class,new JAXBContextProvider(),null));
}