public boolean shouldDataBeRouted(SimpleRouterContext context,DataMetaData dataMetaData,Node node,boolean initialLoad,boolean initialLoadSelectUsed,TriggerRouter triggerRouter){
  IDataRouter router=getDataRouter(dataMetaData.getRouter());
  Set<Node> oneNodeSet=new HashSet<Node>(1);
  oneNodeSet.add(node);
  Collection<String> nodeIds=router.routeToNodes(context,dataMetaData,oneNodeSet,initialLoad,initialLoadSelectUsed,triggerRouter);
  return nodeIds != null && nodeIds.contains(node.getNodeId());
}

public boolean shouldDataBeRouted ( SimpleRouterContext context , DataMetaData dataMetaData , Node node , boolean initialLoad , boolean initialLoadSelectUsed , TriggerRouter triggerRouter ) { IDataRouter router = getDataRouter ( dataMetaData . getRouter ( ) ) ; Set < Node > oneNodeSet = new HashSet < Node > ( 1 ) ; oneNodeSet . add ( node ) ; Collection < String > nodeIds = router . routeToNodes ( context , dataMetaData , oneNodeSet , initialLoad , initialLoadSelectUsed , triggerRouter ) ; return nodeIds != null && nodeIds . contains ( node . getNodeId ( ) ) ; }
for use in data load events
