Program: 112164
Project: 112164
Buggy source:
/** 
 * Extract all of the resources from a given bundle
 */
public static List<BundleEntryParts> toListOfEntries(FhirContext theContext,IBaseBundle theBundle){
  List<BundleEntryParts> retVal=new ArrayList<>();
  RuntimeResourceDefinition def=theContext.getResourceDefinition(theBundle);
  BaseRuntimeChildDefinition entryChild=def.getChildByName("String_Node_Str");
  List<IBase> entries=entryChild.getAccessor().getValues(theBundle);
  BaseRuntimeElementCompositeDefinition<?> entryChildElem=(BaseRuntimeElementCompositeDefinition<?>)entryChild.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition resourceChild=entryChildElem.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition requestChild=entryChildElem.getChildByName("String_Node_Str");
  BaseRuntimeElementCompositeDefinition<?> requestElem=(BaseRuntimeElementCompositeDefinition<?>)requestChild.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition urlChild=requestElem.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition methodChild=requestElem.getChildByName("String_Node_Str");
  IBaseResource resource=null;
  String url=null;
  RequestTypeEnum requestType=null;
  for (  IBase nextEntry : entries) {
    for (    IBase next : resourceChild.getAccessor().getValues(nextEntry)) {
      resource=(IBaseResource)next;
    }
    for (    IBase nextRequest : requestChild.getAccessor().getValues(nextEntry)) {
      for (      IBase nextUrl : urlChild.getAccessor().getValues(nextRequest)) {
        url=((IPrimitiveType<?>)nextUrl).getValueAsString();
      }
      for (      IBase nextUrl : methodChild.getAccessor().getValues(nextRequest)) {
        String methodString=((IPrimitiveType<?>)nextUrl).getValueAsString();
        if (isNotBlank(methodString)) {
          requestType=RequestTypeEnum.valueOf(methodString);
        }
      }
    }
    retVal.add(new BundleEntryParts(requestType,url,resource));
  }
  return retVal;
}

Fixed version (ground truth):
/** 
 * Extract all of the resources from a given bundle
 */
public static List<BundleEntryParts> toListOfEntries(FhirContext theContext,IBaseBundle theBundle){
  List<BundleEntryParts> retVal=new ArrayList<>();
  RuntimeResourceDefinition def=theContext.getResourceDefinition(theBundle);
  BaseRuntimeChildDefinition entryChild=def.getChildByName("String_Node_Str");
  List<IBase> entries=entryChild.getAccessor().getValues(theBundle);
  BaseRuntimeElementCompositeDefinition<?> entryChildElem=(BaseRuntimeElementCompositeDefinition<?>)entryChild.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition resourceChild=entryChildElem.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition requestChild=entryChildElem.getChildByName("String_Node_Str");
  BaseRuntimeElementCompositeDefinition<?> requestElem=(BaseRuntimeElementCompositeDefinition<?>)requestChild.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition urlChild=requestElem.getChildByName("String_Node_Str");
  BaseRuntimeChildDefinition methodChild=requestElem.getChildByName("String_Node_Str");
  for (  IBase nextEntry : entries) {
    IBaseResource resource=null;
    String url=null;
    RequestTypeEnum requestType=null;
    for (    IBase next : resourceChild.getAccessor().getValues(nextEntry)) {
      resource=(IBaseResource)next;
    }
    for (    IBase nextRequest : requestChild.getAccessor().getValues(nextEntry)) {
      for (      IBase nextUrl : urlChild.getAccessor().getValues(nextRequest)) {
        url=((IPrimitiveType<?>)nextUrl).getValueAsString();
      }
      for (      IBase nextUrl : methodChild.getAccessor().getValues(nextRequest)) {
        String methodString=((IPrimitiveType<?>)nextUrl).getValueAsString();
        if (isNotBlank(methodString)) {
          requestType=RequestTypeEnum.valueOf(methodString);
        }
      }
    }
    retVal.add(new BundleEntryParts(requestType,url,resource));
  }
  return retVal;
}