code: function(params, callback) {
              callback = callback || function() {};
              var that = this;
              var req = this.post("", params, function(err, response) {
                  if (err) {
                      callback(err);
                  }
                  else {
                      var props = response.data.entry;
                      if (utils.isArray(props)) {
                          props = props[0];
                      }
                      
                      var entity = that.instantiateEntity(props);
                      entity._load(props); 
                      
                      if (that.fetchOnEntityCreation) {
                          entity.fetch(function() {
                              if (req.wasAborted) {
                                  return; // aborted, so ignore
                              }
                              else {
                                  callback.apply(null, arguments);
                              }
                          });
                      }
                      else {                   
                          callback(null, entity);
                      }
                  }
              });
              
              return req;
          }
docs: Creates an entity on the server for this collection with the specified
  parameters.
  
  @example
  
  var apps = service.apps();
  apps.create({name: "NewSearchApp"}, function(err, newApp) {
  console.log("CREATED");
  });
  
  @param {Object} params A dictionary of entity-specific properties.
  @param {Function} callback The function to call when the request is complete: `(err, response)`.
  @returns {Array} An array of `splunkjs.Service.Entity` objects.
  
  @method splunkjs.Service.Collection