code: protected final <T> T[] getIds(String name, Class<T> clazz) {
      T[] datas = Params.getAll(name + ".id", clazz);
      if (null == datas) {
        String datastring = Params.get(name + ".ids");
        if (null == datastring) datastring = Params.get(name + "Ids");
        if (null == datastring) Array.newInstance(clazz, 0);
        else return Params.converter.convert(Strings.split(datastring, ","), clazz);
      }
      return datas;
    }
docs: Get entity's id array from parameters shortname.id,shortname.ids,shortnameIds
  
  @param name
  @param clazz
  @return empty array if not found