Adds the NodeReferee interface, to inject functionality that can decide whether a node should be added or not. This is post query, maybe for our use case we should try a pre query alternative.