anchor.diff:                          $.each(data.entities, function (i, item) {
                               var e = {
                                   'id': item.key,
  -                                'text': item.name + "<span class='authKey'> ["+item.key+"]</span>",
  +                                'text': item.name + "<span class='authKey'> [" + item.key + "]</span>",
                                   children: [],
                                   state: {'opened': true},
                                   'icon': "glyphicon glyphicon-flag"
  
positive.code: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <div id="${field}CollectionContainer">
      <c:if test="${not param.readonly}">
          <input type="text" id="plugins4_q" value="" class="input" >
      </c:if>
      <input type="hidden" name="field_${field}" id="field_${field}" value="" />
      <div id="editAuthTree"></div>
  
negative.code:                         });
                          $('#field_${field}').val(selectedElmsIds.join(","));
                      });
                      $('#${field}CollectionContainerSearchInput').keyup(function (e) {
                          if (to) {
                              clearTimeout(to);
                          }
                          to = setTimeout(function () {
                              var v = $('#${field}CollectionContainerSearchInput').val();
                              $('#editAuthTree').jstree(true).search(v);
                          }, 250);
                          e.preventDefault();
                      });
                  });
              });
              $("#${field}CollectionContainerSearchInput").keypress(function (e) {
                  if (e.which === 13) {
                      e.preventDefault();
                  }
              });
  </script>