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 ; }
Searches the value along the repositories hierarchy by the entry point and path determined before .