code: function EntityMethods(models) {
        this.models = models;
        this.getByNameOrId = bind(this.getByNameOrId, this);
        this.getByName = bind(this.getByName, this);
        this.get = bind(this.get, this);
        Hoek.assert(this.models, i18n.assertModelsRequired);
        Hoek.assert(this.models.User, i18n.assertUserInModelsRequired);
        Hoek.assert(this.models.Organization, i18n.assertOrganizationInModelsRequired);
      }
docs: /*
  Initializes a new instance of the @see EntityMethods class.
  @param {Object} models A collection of models that can be used.