code: public HierarchyScanResult findOriginAndValue(String name, Class<?> type) {
          Object value;
          findEntryPoint();
          String path = getRelativePath(name);
          for (Resource parent = entryPoint; parent != null; parent = parent.getParent()) {
              ValueMap parentProps = parent.adaptTo(ValueMap.class);
              if (parentProps != null) {
                  value = parentProps.get(path, type);
                  if (value != null) {
                      return new HierarchyScanResult(parent, value);
                  }
              }
              if (exitPoint != null && parent.getPath().equals(exitPoint.getPath())) {
                  break;
              }
          }
          return null;
      }
docs: Searches the value along the repositories hierarchy by the entry point and path determined before.
  
  @param name the property name or path
  @param type the expected type of the value
  @return the value found or <code>null</code> if no such value found
  in one of the appropriate parent nodes