session.createType = function (type, options) {
      options = _fill(options);
      options.cmisaction = 'createType';
      options.type = JSON.stringify(type);
      return new CmisRequest(_post(session.defaultRepository.repositoryUrl)