HibernateUtil dh = new HibernateUtil(c);
String type = ((Inode) c.newInstance()).getType();
dh.setMaxResults(maxRows);
dh.setQuery("from inode in class " + c.getName()+" where inode.type='"+type+"' ");
return dh.list();
} catch (Exception e) {
Logger.warn(InodeFactory.class, "getObjectsOfClass failed:" + e, e);
// throw new DotRuntimeException(e.toString());
}