code: @GET
      @Path("/{id}")
      @Description("Returns the audit trail for a given Id.")
      @Produces(MediaType.APPLICATION_JSON)
      public AuditDto findById(@PathParam("id") BigInteger id) {
          if (id == null || id.compareTo(BigInteger.ZERO) < 1) {
              throw new WebApplicationException("ID cannot be null and must be a positive non-zero number.", Status.BAD_REQUEST);
          }
  
          Audit audit = _auditService.findAuditByPrimaryKey(id);
  
          if (audit != null) {
              return AuditDto.transformToDto(_auditService.findAuditByPrimaryKey(id));
          } else {
              throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
          }
      }
docs: Returns the audit record for the given id.
  
  @param   id  entityId The entity Id. Cannot be null.
  
  @return  The audit object.
  
  @throws  WebApplicationException  Throws the exception for invalid input data.