public static < T > T initElements ( SearchContext searchContext , T instance ) { Class < ? > currentInstanceHierarchyClass = instance . getClass ( ) ; while ( currentInstanceHierarchyClass != Object . class ) { proxyElements ( searchContext , instance , currentInstanceHierarchyClass ) ; currentInstanceHierarchyClass = currentInstanceHierarchyClass . getSuperclass ( ) ; } return instance ; }
Initializes the elements of an existing object .