// try it as variable
// FIXME: https://github.com/dotCMS/dotCMS/issues/2847
HibernateUtil hu=new HibernateUtil(Category.class);
hu.setQuery("from "+Category.class.getCanonicalName()+" WHERE category_velocity_var_name=?");
hu.setParam(cat);
category=(Category)hu.load();
if(category!=null && InodeUtils.isSet(category.getCategoryId())) {
cats.add(category);
}
}
}