code: public JenkinsServer createView(FolderJob folder, String viewName, String viewXml, Boolean crumbFlag)
              throws IOException {
          client.post_xml(UrlUtils.toBaseUrl(folder) + "createView?name=" + EncodingUtils.formParameter(viewName), viewXml,
                  crumbFlag);
          return this;
      }
docs: Create a view on the server using the provided xml and in the provided
  folder.
  
  @param folder the folder.
  @param viewName the view name.
  @param viewXml the view xml.
  @param crumbFlag <code>true</code> to add <b>crumbIssuer</b>
  <code>false</code> otherwise.
  @throws IOException in case of an error.