class OperationsApiServiceImpl implements OperationsApiService {

    @Override
    public ResponseEntity<List<Log>> getOperationLogs(String spaceGuid, String operationId) {
        try {
            getOperation(operationId);
            List<String> logIds = logsService.getLogNames(spaceGuid, operationId);
            List<Log> logs = logIds.stream()
                                   .map(id -> ImmutableLog.builder()
                                                          .id(id)
                                                          .build())
                                   .collect(Collectors.toList());
            return ResponseEntity.ok()
                                 .body(logs);
        } catch (FileStorageException e) {
            throw new ContentException(e, e.getMessage());
        }
    }

}