private CachedRowSet getRelationshipData(ORASSNode node1, ORASSNode node2, List<NodeRelationship> nodeRels) throws MainException{
		List<String> fromTables = new ArrayList<String>();
		String table1 = node1.getOriginalName();
		String table2 = node2.getOriginalName();
		if(nodeRels.size()==1){
			fromTables.add(table1);
			fromTables.add(table2);
		}else{
			for(int i=0;i<nodeRels.size(); i++){
				NodeRelationship nodeRel = nodeRels.get(i);
				String relTable = nodeRel.getTable1();
				if(!fromTables.contains(relTable)) fromTables.add(relTable);
			}
			if(!fromTables.contains(table1)) fromTables.add(table1);
			if(!fromTables.contains(table2)) fromTables.add(table2);
		}

		//logger.debug("from tables size: "+fromTables.size());
		CachedRowSet crs = dbCache.joinTables(fromTables, nodeRels, null);
		return crs;
	}