s1 = cat.getTitle(JCRSessionFactory.getInstance().getCurrentLocale());
if (s1 == null || s1.length() == 0) {
s1 = cat.getKey();
}
} else if (c1 instanceof CategoryBean) {
final CategoryBean cat = (CategoryBean) c1;
s1 = cat.getKey();
} else if (c1.getClass() == Version.class) {
final Version res = (Version) c1;
try {
s1 = res.getName();
} catch (RepositoryException e) {