public JSONArray search(long groupId, String name, String[] tagProperties, int start, int end)
      throws SystemException {

    List<AssetTag> tags = getTags(groupId, name, tagProperties, start, end);

    return Autocomplete.listToJson(tags, "name", "name");
  }
  public JSONArray search(
      long groupId, String name, String[] categoryProperties, int start, int end)
      throws PortalException, SystemException {

    List<AssetCategory> categories =
        assetCategoryLocalService.search(groupId, name, categoryProperties, start, end);

    categories = filterCategories(categories);

    return Autocomplete.listToJson(categories, "name", "name");
  }