return getSiteNodeVersionVOWithParentRecursive(siteNodeId, stateId, new ArrayList());
}
private List getSiteNodeVersionVOWithParentRecursive(Integer siteNodeId, Integer stateId, List resultList) throws ConstraintException, SystemException
{
SiteNodeVersionVO siteNodeVersionVO = getLatestSiteNodeVersionVO(siteNodeId);
if(siteNodeVersionVO.getStateId().intValue() == stateId.intValue())
resultList.add(siteNodeVersionVO);
// Get the children of this sitenode and do the recursion
List childSiteNodeList = SiteNodeController.getController().getSiteNodeChildrenVOList(siteNodeId);
Iterator childSiteNodeListIterator = childSiteNodeList.iterator();