code: protected FileWrapper handleGetFileContentWithMetaData(Class<? extends FileEntity> type, Integer entityId, Integer fileId) {
          FileWrapper fileWrapper = null;
          try {
              FileContent fileContent = this.handleGetFileContent(type, entityId, fileId);
  
              List<FileMeta> metaDataList = this.handleGetEntityMetaFiles(type, entityId);
              FileMeta correctMetaData = null;
              for (FileMeta metaData : metaDataList) {
                  if (fileId.equals(metaData.getId())) {
                      correctMetaData = metaData;
                      break;
                  }
              }
  
              fileWrapper = new StandardFileWrapper(fileContent, correctMetaData);
          } catch (Exception e) {
              log.error("Error getting file with id: " + fileId + " for " + type.getSimpleName() + " with id:" + entityId);
          }
  
          return fileWrapper;
      }
docs: Makes the api call to get both the file content and filemeta data, and combines those two to a FileWrapper
  
  @param type
  @param entityId
  @param fileId
  @return