Program: 80830
Project: 80830
Buggy source:
/** 
 * Updates the endpoint parameters from POST and PUT requests.
 * @param request A POST or PUT request with a {?et,lt,con} URI Template queryand a Link Format payload.
 */
public boolean setParameters(Request request){
  boolean contextUpdated=false;
  String newContext="String_Node_Str";
  List<String> query=request.getOptions().getUriQuery();
  for (  String q : query) {
    KeyValuePair kvp=KeyValuePair.parse(q);
    if (LinkFormat.END_POINT_TYPE.equals(kvp.getName()) && !kvp.isFlag()) {
      this.endpointType=kvp.getValue();
    }
    if (LinkFormat.LIFE_TIME.equals(kvp.getName()) && !kvp.isFlag()) {
      lifeTime=kvp.getIntValue();
      if (lifeTime < 60) {
        LOGGER.info("String_Node_Str" + lifeTime + "String_Node_Str");
        lifeTime=60;
      }
    }
    if (LinkFormat.CONTEXT.equals(kvp.getName()) && !kvp.isFlag()) {
      newContext=kvp.getValue();
      contextUpdated=true;
    }
  }
  if (context == null || contextUpdated) {
    try {
      URI check;
      if (newContext.isEmpty()) {
        check=new URI("String_Node_Str","String_Node_Str",request.getSource().getHostAddress(),request.getSourcePort(),"String_Node_Str","String_Node_Str","String_Node_Str");
        this.context=check.toString().replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
      }
 else {
        check=new URI(newContext);
        this.context=newContext;
      }
    }
 catch (    Exception e) {
      LOGGER.warning("String_Node_Str" + request.getSource().getHostAddress() + "String_Node_Str"+ request.getSourcePort()+ "String_Node_Str"+ newContext+ "String_Node_Str");
      return false;
    }
  }
  if (lifetimeTimer == null) {
    setLifeTime(lifeTime);
  }
  return updateEndpointResources(request.getPayloadString());
}

Fixed version (ground truth):
/** 
 * Updates the endpoint parameters from POST and PUT requests.
 * @param request A POST or PUT request with a {?et,lt,con} URI Template queryand a Link Format payload.
 */
public boolean setParameters(Request request){
  boolean contextUpdated=false;
  String newContext="String_Node_Str";
  List<String> query=request.getOptions().getUriQuery();
  for (  String q : query) {
    KeyValuePair kvp=KeyValuePair.parse(q);
    if (LinkFormat.END_POINT_TYPE.equals(kvp.getName()) && !kvp.isFlag()) {
      this.endpointType=kvp.getValue();
    }
    if (LinkFormat.LIFE_TIME.equals(kvp.getName()) && !kvp.isFlag()) {
      lifeTime=kvp.getIntValue();
      if (lifeTime < 60) {
        LOGGER.info("String_Node_Str" + lifeTime + "String_Node_Str");
        lifeTime=60;
      }
    }
    if (LinkFormat.CONTEXT.equals(kvp.getName()) && !kvp.isFlag()) {
      newContext=kvp.getValue();
      contextUpdated=true;
    }
  }
  if (context == null || contextUpdated) {
    try {
      setContextFromRequest(request,newContext);
    }
 catch (    Exception e) {
      LOGGER.log(Level.WARNING,"String_Node_Str",new Object[]{newContext,request.getSource().getHostAddress(),request.getSourcePort(),e});
      return false;
    }
  }
  if (ltExpiryFuture == null) {
    setLifeTime(lifeTime);
  }
  return updateEndpointResources(request.getPayloadString());
}