public static void addNodesInTarget(Resource target,Dataset dataset,Set<Node> results){
  for (  RDFNode focusNode : getResourcesInTarget(target,dataset)) {
    results.add(focusNode.asNode());
  }
}

public static void addNodesInTarget ( Resource target , Dataset dataset , Set < Node > results ) { for ( RDFNode focusNode : getResourcesInTarget ( target , dataset ) ) { results . add ( focusNode . asNode ( ) ) ; } }
adds all resources from a given sh : target to a given results set of nodes .
