code: private TreeBuilder<T> listen(Listener<T> listener, String resourceSelector) {
          return TreeBuilder.<T>builder(new ListenerTree<T>(build(), listener,
                  PathUtil.<T>resourceSelector(resourceSelector)));
      }
docs: Listen to events on selective resources of the tree
  
  @param listener listener
  @param resourceSelector resource selector
  @return builder