in server/directmemory-server-archetype/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.2.0.1.js [1525:1547]
  , lookup: function (event) {
      var that = this
        , items
        , q
      this.query = this.$element.val()
      if (!this.query) {
        return this.shown ? this.hide() : this
      }
      items = $.grep(this.source, function (item) {
        if (that.matcher(item)) return item
      })
      items = this.sorter(items)
      if (!items.length) {
        return this.shown ? this.hide() : this
      }
      return this.render(items.slice(0, this.options.items)).show()
    }