parentNode = getByPath(parentPath, Node.class);
}
List<T> result = null;
try {
Criteria criteria = createCriteria();
if (parentNode == null) {
criteria.add(Restrictions.isNull(Site.PROP_PARENT));
} else {
criteria.add(Restrictions.eq(Site.PROP_PARENT, parentNode));
}
result = findByCriteria(criteria);
} catch (Exception e) {
logger.error("Cound not get all child nodes from parentPath=" + parentPath, e);