code: public static Result ok(File file, boolean attachment) {
          Preconditions.checkArgument(file.exists());
          Result result = status(Result.OK)
                  .as(MimeTypes.getMimeTypeForFile(file))
                  .with(HeaderNames.CONTENT_LENGTH, Long.toString(file.length()))
                  .render(new RenderableFile(file));
          if (attachment) {
              // Add the content-disposal header
              result.with(HeaderNames.CONTENT_DISPOSITION, "attachment; filename=\"" + file.getName() + "\"");
          }
          return result;
      }
docs: Creates a new result with the status {@literal 200 - OK} sending the given file to the client. Wisdom
  tries to guess the  {@literal Content-Type} header value from the given file.
  <p/>
  If attachment is set to {@literal true}, the {@literal Content-Disposition} header is set to "attachment" and
  with the file name matching the given file's name.
  
  @param file       the file
  @param attachment whether or not the file need to be sent as attachment.
  @return a new configured result