code: public static List<AuditDto> transformToDto(List<Audit> audits) {
          if (audits == null) {
              throw new WebApplicationException("Null entity object cannot be converted to Dto object.", Status.INTERNAL_SERVER_ERROR);
          }
  
          List<AuditDto> result = new ArrayList<AuditDto>();
  
          for (Audit audit : audits) {
          	    
              result.add(transformToDto(audit));
          }
          return result;
      }
docs: Converts a list of audit entities to DTOs.
  
  @param   audits  The list of audit entities to convert.
  
  @return  The list of DTO objects.
  
  @throws  WebApplicationException  If an error occurs.