Program: 112286
Project: 112286
Buggy source:
@Override public String lookup(String theKey){
  if ("String_Node_Str".equals(theKey)) {
    if (myRequestDetails.getRestOperationType() != null) {
      return myRequestDetails.getRestOperationType().getCode();
    }
    return "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(theKey)) {
    if (myRequestDetails.getRestOperationType() != null) {
switch (myRequestDetails.getRestOperationType()) {
case EXTENDED_OPERATION_INSTANCE:
case EXTENDED_OPERATION_SERVER:
case EXTENDED_OPERATION_TYPE:
        return myRequestDetails.getOperation();
default :
      return "String_Node_Str";
  }
}
 else {
  return "String_Node_Str";
}
}
 else if ("String_Node_Str".equals(theKey)) {
if (myRequestDetails.getId() != null) {
  return myRequestDetails.getId().getValue();
}
return "String_Node_Str";
}
 else if ("String_Node_Str".equals(theKey)) {
return StringUtils.defaultString(myRequest.getServletPath());
}
 else if ("String_Node_Str".equals(theKey)) {
if (myRequestDetails.getId() != null) {
  return myRequestDetails.getId().getValue();
}
if (myRequestDetails.getResourceName() != null) {
  return myRequestDetails.getResourceName();
}
return "String_Node_Str";
}
 else if (theKey.equals("String_Node_Str")) {
StringBuilder b=new StringBuilder();
for (Entry<String,String[]> next : myRequestDetails.getParameters().entrySet()) {
  for (  String nextValue : next.getValue()) {
    if (b.length() == 0) {
      b.append('?');
    }
 else {
      b.append('&');
    }
    try {
      b.append(URLEncoder.encode(next.getKey(),"String_Node_Str"));
      b.append('=');
      b.append(URLEncoder.encode(nextValue,"String_Node_Str"));
    }
 catch (    UnsupportedEncodingException e) {
      throw new ca.uhn.fhir.context.ConfigurationException("String_Node_Str",e);
    }
  }
}
return b.toString();
}
 else if (theKey.startsWith("String_Node_Str")) {
String val=myRequest.getHeader(theKey.substring("String_Node_Str".length()));
return StringUtils.defaultString(val);
}
 else if (theKey.startsWith("String_Node_Str")) {
return StringUtils.defaultString(myRequest.getRemoteAddr());
}
 else if (theKey.equals("String_Node_Str")) {
EncodingEnum encoding=RestfulServerUtils.determineResponseEncodingNoDefault(myRequest,myRequestDetails.getServer().getDefaultResponseEncoding());
if (encoding != null) {
  return encoding.name();
}
 else {
  return "String_Node_Str";
}
}
return "String_Node_Str";
}

Fixed version (ground truth):
@Override public String lookup(String theKey){
  if ("String_Node_Str".equals(theKey)) {
    if (myRequestDetails.getRestOperationType() != null) {
      return myRequestDetails.getRestOperationType().getCode();
    }
    return "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(theKey)) {
    if (myRequestDetails.getRestOperationType() != null) {
switch (myRequestDetails.getRestOperationType()) {
case EXTENDED_OPERATION_INSTANCE:
case EXTENDED_OPERATION_SERVER:
case EXTENDED_OPERATION_TYPE:
        return myRequestDetails.getOperation();
default :
      return "String_Node_Str";
  }
}
 else {
  return "String_Node_Str";
}
}
 else if ("String_Node_Str".equals(theKey)) {
if (myRequestDetails.getId() != null) {
  return myRequestDetails.getId().getValue();
}
return "String_Node_Str";
}
 else if ("String_Node_Str".equals(theKey)) {
return StringUtils.defaultString(myRequest.getServletPath());
}
 else if ("String_Node_Str".equals(theKey)) {
if (myRequestDetails.getId() != null) {
  return myRequestDetails.getId().getValue();
}
if (myRequestDetails.getResourceName() != null) {
  return myRequestDetails.getResourceName();
}
return "String_Node_Str";
}
 else if (theKey.equals("String_Node_Str")) {
StringBuilder b=new StringBuilder();
for (Entry<String,String[]> next : myRequestDetails.getParameters().entrySet()) {
  for (  String nextValue : next.getValue()) {
    if (b.length() == 0) {
      b.append('?');
    }
 else {
      b.append('&');
    }
    try {
      b.append(URLEncoder.encode(next.getKey(),"String_Node_Str"));
      b.append('=');
      b.append(URLEncoder.encode(nextValue,"String_Node_Str"));
    }
 catch (    UnsupportedEncodingException e) {
      throw new ca.uhn.fhir.context.ConfigurationException("String_Node_Str",e);
    }
  }
}
return b.toString();
}
 else if (theKey.startsWith("String_Node_Str")) {
String val=myRequest.getHeader(theKey.substring("String_Node_Str".length()));
return StringUtils.defaultString(val);
}
 else if (theKey.startsWith("String_Node_Str")) {
return StringUtils.defaultString(myRequest.getRemoteAddr());
}
 else if (theKey.equals("String_Node_Str")) {
EncodingEnum encoding=RestfulServerUtils.determineResponseEncodingNoDefault(myRequest,myRequestDetails.getServer().getDefaultResponseEncoding());
if (encoding != null) {
  return encoding.name();
}
 else {
  return "String_Node_Str";
}
}
 else if (theKey.equals("String_Node_Str")) {
return myException != null ? myException.getMessage() : null;
}
 else if (theKey.equals("String_Node_Str")) {
return myRequest.getRequestURL().toString();
}
 else if (theKey.equals("String_Node_Str")) {
return myRequest.getMethod();
}
return "String_Node_Str";
}