code: public static Result ok(Document document) {
          return status(Result.OK).render(document).as(MimeTypes.XML);
      }
docs: Generates a result with the {@literal 200 - OK} status and with the given XML content. The result has the
  {@literal Content-Type} header set to {@literal application/xml}.
  
  @param document the XML document
  @return a new configured result