Program: 188833
Project: 188833
Buggy source:
private void retrieveAIPPreservationInformation(StoragePath storagePath,List<String> representationIds,final Map<String,List<String>> preservationRepresentationObjects,final Map<String,List<String>> preservationFileObjects,final Map<String,List<String>> preservationEvents){
  for (  String representationID : representationIds) {
    try {
      StoragePath representationPreservationPath=ModelUtils.getPreservationPath(storagePath.getName(),representationID);
      List<String> preservationFileIds=ModelUtils.getIds(storage,representationPreservationPath);
      final List<String> preservationRepresentationObjectFileIds=new ArrayList<String>();
      final List<String> preservationFileObjectFileIds=new ArrayList<String>();
      final List<String> preservationEventFileIds=new ArrayList<String>();
      for (      String preservationFileId : preservationFileIds) {
        StoragePath binaryPath=ModelUtils.getPreservationFilePath(storagePath.getName(),representationID,preservationFileId);
        Binary preservationBinary=storage.getBinary(binaryPath);
        if (ModelUtils.isPreservationRepresentationObject(preservationBinary)) {
          preservationRepresentationObjectFileIds.add(preservationFileId);
        }
 else         if (ModelUtils.isPreservationEvent(preservationBinary)) {
          preservationEventFileIds.add(preservationFileId);
        }
 else         if (ModelUtils.isPreservationFileObject(preservationBinary)) {
          preservationFileObjectFileIds.add(preservationFileId);
        }
 else {
          LOGGER.warn("String_Node_Str",binaryPath.asString());
        }
      }
      preservationRepresentationObjects.put(representationID,preservationRepresentationObjectFileIds);
      preservationFileObjects.put(representationID,preservationFileObjectFileIds);
      preservationEvents.put(representationID,preservationEventFileIds);
    }
 catch (    StorageServiceException e) {
      LOGGER.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
private void retrieveAIPPreservationInformation(StoragePath storagePath,List<String> representationIds,final Map<String,List<String>> preservationRepresentationObjects,final Map<String,List<String>> preservationFileObjects,final Map<String,List<String>> preservationEvents) throws ModelServiceException {
  for (  String representationID : representationIds) {
    try {
      StoragePath representationPreservationPath=ModelUtils.getPreservationPath(storagePath.getName(),representationID);
      List<String> preservationFileIds=ModelUtils.getChildIds(storage,representationPreservationPath,false);
      final List<String> preservationRepresentationObjectFileIds=new ArrayList<String>();
      final List<String> preservationFileObjectFileIds=new ArrayList<String>();
      final List<String> preservationEventFileIds=new ArrayList<String>();
      for (      String preservationFileId : preservationFileIds) {
        StoragePath binaryPath=ModelUtils.getPreservationFilePath(storagePath.getName(),representationID,preservationFileId);
        Binary preservationBinary=storage.getBinary(binaryPath);
        if (ModelUtils.isPreservationRepresentationObject(preservationBinary)) {
          preservationRepresentationObjectFileIds.add(preservationFileId);
        }
 else         if (ModelUtils.isPreservationEvent(preservationBinary)) {
          preservationEventFileIds.add(preservationFileId);
        }
 else         if (ModelUtils.isPreservationFileObject(preservationBinary)) {
          preservationFileObjectFileIds.add(preservationFileId);
        }
 else {
          LOGGER.warn("String_Node_Str",binaryPath.asString());
        }
      }
      preservationRepresentationObjects.put(representationID,preservationRepresentationObjectFileIds);
      preservationFileObjects.put(representationID,preservationFileObjectFileIds);
      preservationEvents.put(representationID,preservationEventFileIds);
    }
 catch (    StorageServiceException e) {
      LOGGER.error("String_Node_Str",e);
      throw new ModelServiceException("String_Node_Str",e.getCode(),e);
    }
  }
}